[REF] use datetime.utcnow() rather than having to import: from dateutil.tz import tzutc

bzr revid: rvalyi@gmail.com-20100201125944-lpr1ijeg2zmkadmv
This commit is contained in:
Raphaël Valyi 2010-02-01 10:59:44 -02:00
parent 855d0fc82f
commit fe3562a57b
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@
import os
from datetime import datetime
from dateutil.tz import tzutc
from os.path import join
import fnmatch
@ -281,7 +280,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(tzutc()).strftime('%Y-%m-%d %H:%M:%S%z'),
'now': datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S%z')+"+0000",
}
)