Fix utcdate filter stable
authorChristian Ebert <blacktrash@gmx.net>
Fri, 05 Feb 2010 16:50:31 +0000
branchstable
changeset 676 c15f0019c15b
parent 674 0efa9d6ac11f
child 677 9bdbae6007cb
child 679 f4cb54ed71b1
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.
hgkw/keyword.py
--- a/hgkw/keyword.py	Tue Jan 19 22:20:08 2010 -0600
+++ b/hgkw/keyword.py	Fri Feb 05 16:50:31 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*']}