changeset 1317:008d3666bf41

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.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu, 22 Sep 2005 21:15:57 -0700
parents b650bfdfc7ee
children 3f4f76012bc9
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)