[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
This commit is contained in:
Raphaël Valyi 2009-12-25 16:03:29 -02:00
parent a638f8aaba
commit b53e15b576
1 changed files with 2 additions and 1 deletions

View File

@ -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'),
}
)