Commits

Lorenzo Gil Sánchez  committed 9334e98

Do not substract the timezone if we are saying the date is utc. This fixes an annoying bug of Trac displaying the comments with older datestamps

  • Participants
  • Parent commits 847bb8c

Comments (0)

Files changed (1)

File hghooks/trachooks.py

 
 
 def hgtime2datetime(hgdate):
-    hgtime, hgtz = hgdate
-    dateinfo = list(time.gmtime(float(hgtime) - hgtz)[:-2]) + [utc]
+    utc_hgtime, hgtz = hgdate
+    dateinfo = list(time.gmtime(utc_hgtime)[:-2]) + [utc]
     return datetime.datetime(*dateinfo)