From: Matthias Klose Date: Mon, 16 Aug 2004 12:12:38 +0000 (+0000) Subject: - pygettext.py: Generate POT-Creation-Date header in ISO format. X-Git-Tag: v2.3.5c1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e89d1b45f393bc29bc6dcefc921a84a803e1bc5a;p=thirdparty%2FPython%2Fcpython.git - pygettext.py: Generate POT-Creation-Date header in ISO format. --- diff --git a/Misc/NEWS b/Misc/NEWS index 3f02e0e9225f..91203b6426e5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -94,6 +94,11 @@ Library - Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)). +Tools/Demos +----------- + +- pygettext.py: Generate POT-Creation-Date header in ISO format. + Build ----- diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index f0488bf65d44..bb0dd35da9b0 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -445,7 +445,7 @@ class TokenEater: def write(self, fp): options = self.__options - timestamp = time.ctime(time.time()) + timestamp = time.strftime('%Y-%m-%d %H:%M+%Z') # The time stamp in the header doesn't have the same format as that # generated by xgettext... print >> fp, pot_header % {'time': timestamp, 'version': __version__}