keyword: fix utcdate filter
authorChristian Ebert <blacktrash@gmx.net>
Thu, 04 Feb 2010 20:58:42 +0000
changeset 10332 f64160f28b3f
parent 10331 ec5240a22f4a
child 10333 b9e44cc97355
keyword: fix utcdate filter So far the utcdate filter only omitted the timezone, now it actually converts to utc. Thanks to Kevin Grover for pointing out the issue.
hgext/keyword.py
--- a/hgext/keyword.py	Sat Feb 06 12:47:33 2010 +0100
+++ b/hgext/keyword.py	Thu Feb 04 20:58:42 2010 +0000
@@ -97,7 +97,7 @@
               ' transplant')
 
 # provide cvs-like UTC date filter
-utcdate = lambda x: util.datestr(x, '%Y/%m/%d %H:%M:%S')
+utcdate = lambda x: util.datestr((x[0], 0), '%Y/%m/%d %H:%M:%S')
 
 # make keyword tools accessible
 kwtools = {'templater': None, 'hgcmd': '', 'inc': [], 'exc': ['.hg*']}