GNOME Bugzilla – Bug 665613
Many comments show as "less than a minute ago"
Last modified: 2017-01-29 19:26:42 UTC
Right now for me, on: https://extensions.gnome.org/extension/55/media-player-indicator/ I see both comment showing up as "less than a minute ago" - there is something broken about the logic - maybe some problem from the GNOME servers running with a UTC timezone compared to a test system running locally on the same machine as the browser?
Yeah, I assume this is jquery.timeago not understanding time zones. We already have the time zone information from the browser (Date.prototype.getTimezoneOffset), so I'm not sure why it isn't using it.
Hm, no, I'm wrong. It's using Date.prototype.getTime, which should be UTC. I have no idea why this is happening. [0] [0] https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime
Looking at the HTML source for one of the timestamps I see: title="2011-12-13T08:20:40" (no timezone) and the 'c' formatter for the Django date filter has docs: ISO 8601 format. (Note: unlike others formatters, such as "Z", "O" or "r", the "c" formatter will not add timezone offset if value is a naive datetime (see datetime.tzinfo).
I see that it was fixed by Jasper with commit b4b8bd6d at Sep, 2012.