# HG changeset patch
# User Christian Ebert <blacktrash@gmx.net>
# Date 2010-02-04 20:58:42
# Node ID f64160f28b3f27f8449ace7bfaccd44eee5d401f
# Parent  ec5240a22f4a8479ac6f58d643a667498eb19eb9

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.

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -97,7 +97,7 @@ restricted = ('merge record resolve qfol
               ' 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*']}