diff hgext/keyword.py @ 10332:f64160f28b3f

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.
author Christian Ebert <blacktrash@gmx.net>
date Thu, 04 Feb 2010 20:58:42 +0000
parents d6512b3e9ac0
children 0e64d814d7d0
line wrap: on
line diff
--- 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*']}