From b53e15b5768674bbd4f0b16c62d1f8ac2153c7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Fri, 25 Dec 2009 16:03:29 -0200 Subject: [PATCH] [FIX] translate; Launchpad export: time is now UTC and we use a clean strftime rather than a hacky split/concat, output is exactly the same as mx.Datetime bzr revid: rvalyi@gmail.com-20091225180329-a22s8o5lr5qw4qr2 --- bin/tools/translate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index 3d5bd754f1a..b62dc61f1c6 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -21,6 +21,7 @@ import os from datetime import datetime +from dateutil.tz import tzutc from os.path import join import fnmatch @@ -280,7 +281,7 @@ class TinyPoFile(object): 'version': release.version, 'modules': reduce(lambda s, m: s + "#\t* %s\n" % m, modules, ""), 'bugmail': release.support_email, - 'now': datetime.now().isoformat(' ')[0:-7] + '+0000', + 'now': datetime.now(tzutc()).strftime('%Y-%m-%d %H:%M:%S%z'), } )