misterhouse icon indicating copy to clipboard operation
misterhouse copied to clipboard

Fix Last Modified Date in Pod/Html Pages

Open krkeegan opened this issue 10 years ago • 0 comments

Originally raised in #339, by @mstovenour. "Need to consider how to update the "last modified" dates at the bottom of the .pod/.html pages. Otherwise might delete the dates; but as a user of other opensource projects I think it is useful when I can see a last update date."

Currently, the system relies on a javascript call that checks the file's last modified date. Unfortunately, git doesn't track file modification dates. If a user clones the repository, the file modification dates will all be set to the current time.

At the moment, I don't have a good solution for how to automate this task. I do not think that hand coding the dates in each file is a reasonable solution.

There is a possibility of using the Github API to query the last commit date for each file. I don't think we can overcome the cross-site scripting problem, so this would have to be done on the MH server end. The other issue, is we would need to determine the user's MH version in order to determine if the document is outdated.

krkeegan avatar Mar 18 '14 17:03 krkeegan