]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- pygettext.py: Generate POT-Creation-Date header in ISO format.
authorMatthias Klose <doko@ubuntu.com>
Mon, 16 Aug 2004 12:12:38 +0000 (12:12 +0000)
committerMatthias Klose <doko@ubuntu.com>
Mon, 16 Aug 2004 12:12:38 +0000 (12:12 +0000)
Misc/NEWS
Tools/i18n/pygettext.py

index 3f02e0e9225f6c6d8e79d8d656671b00b0428ad6..91203b6426e594419960247e64d5d62f76da9b1e 100644 (file)
--- 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
 -----
 
index f0488bf65d44f86047ff0c6c9b1b1ba4c4ff2e39..bb0dd35da9b04b2e6ab728767fb846f5d884b89b 100755 (executable)
@@ -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__}