Print commit time/date from perspective of committer.
authorBryan O'Sullivan <bos@serpentine.com>
Thu, 22 Sep 2005 21:15:57 -0700
changeset 1317 008d3666bf41
parent 1316 b650bfdfc7ee
child 1318 3f4f76012bc9
Print commit time/date from perspective of committer. Previously, it was printed in the time zone of the reader, but with the committer's time zone offset. It is now consistent.
mercurial/commands.py
--- a/mercurial/commands.py	Thu Sep 22 10:12:42 2005 -0700
+++ b/mercurial/commands.py	Thu Sep 22 21:15:57 2005 -0700
@@ -329,7 +329,7 @@
         tz = int(tz)
     except ValueError:
         tz = 0
-    date = time.asctime(time.localtime(float(t))) + " %+05d" % (int(tz)/-36)
+    date = time.asctime(time.gmtime(float(t) - tz)) + " %+05d" % (int(tz)/-36)
 
     parents = [(log.rev(p), ui.verbose and hex(p) or short(p))
                for p in log.parents(changenode)