[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:
parent
a638f8aaba
commit
b53e15b576
|
@ -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'),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue