changeset 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 ec5240a22f4a
children b9e44cc97355
files hgext/keyword.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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*']}