Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
The time for when an issue is created by an anonymous user is incorrect.
There are two problems:
- The time is off by one hour
- The mouse-over time is displayed in GMT/UTC instead of local time for me (the viewer). This is inconsistent with the comments of regular users for which the time is displayed as local time.
Example
See https://bitbucket.org/Manfre/django-mssql/issue/50/schema-name-needs-to-be-checked-and
Anonymous user's post time
#!html <time datetime="2014-01-06T18:29:15.670634" title="6 January 2014 18:29">an hour ago</time>
- The post was created 12:29 PM EST (GMT-5), which means the datetime attribute should have been "2014-01-06T17:29:15.670634" or "2014-01-06T12:29:15.670634-05:00".
- The mouse over display time should be displayed in my local time, which should have been "6 January 2014 12:29"
Regular user's post time
#!html <time title="6 January 2014 12:59" datetime="2014-01-06T12:59:11-05:00" data-title="true">an hour ago</time>
This is correct and is exactly as expected
The incorrect time from the issue creation implies that the issue was created after the comment, which is impossible.
Update: The timezone issue seems to affect non-anonymous users too... see https://bitbucket.org/Manfre/django-mssql/issue/45/disabling-uses_savepoints-for-mars\\
Not sure when this issue was created though so I don't know whether it was off by an hour too as the comment could have been posted 1hr 2 mins later.