convert/mtn: mtn does not record timezones, mark dates as UTC (issue1624)
authorPaul Aurich <paul@darkrain42.org>
Thu, 23 Apr 2009 08:45:44 +0200
changeset 8125 da9f3866c637
parent 8124 d883bfbd2e60
child 8126 13b36eb14324
convert/mtn: mtn does not record timezones, mark dates as UTC (issue1624)
hgext/convert/monotone.py
--- a/hgext/convert/monotone.py	Wed Apr 22 10:25:05 2009 +0200
+++ b/hgext/convert/monotone.py	Thu Apr 23 08:45:44 2009 +0200
@@ -107,7 +107,8 @@
                 value = value.replace(r'\\', '\\')
                 certs[name] = value
         # Monotone may have subsecond dates: 2005-02-05T09:39:12.364306
-        certs["date"] = certs["date"].split('.')[0]
+        # and all times are stored in UTC
+        certs["date"] = certs["date"].split('.')[0] + " UTC"
         return certs
 
     # implement the converter_source interface: