After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665613 - Many comments show as "less than a minute ago"
Many comments show as "less than a minute ago"
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: extensions.gnome.org
current
Other Linux
: Normal normal
: ---
Assigned To: Shell extensions maintainer(s)
Shell extensions maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-12-05 16:52 UTC by Owen Taylor
Modified: 2017-01-29 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2011-12-05 16:52:21 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?
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-12-05 17:31:36 UTC
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.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-12-13 01:09:22 UTC
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
Comment 3 Owen Taylor 2011-12-13 18:32:14 UTC
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).
Comment 4 Yuri Konotopov 2017-01-29 19:26:42 UTC
I see that it was fixed by Jasper with commit b4b8bd6d at Sep, 2012.