-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor last modified date to be rendered client side #8
Comments
so i think that would mean that we would inline the actual last mod date and have a little javascript decoration that turns that into human readable (aka. 3 minutes ago), right? |
Yes, that's the idea. Something that looks like this in the HTML: |
Yes. |
@trieloff i don't think you need the timestamp, so think the html would look something like this: <span class="date">Thu Jun 21 2018 10:24:44 GMT-0700 (Pacific Daylight Time)</span> |
I prefer @trieloff version, but I would try to follow microformat patterns:
or
|
Just merged a simple client side implementation. |
The last modified date is currently rendered "server" side and uses "difference" time ("Last modified xxx months ago"). Since the html is cache, the difference is wrong: it is the difference at the time of the caching and not at client rendering time.
Fixing that "issue" will allow to introduce some JS client side code and give more consistence to the project.
The text was updated successfully, but these errors were encountered: