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

index 9ea0db1a7da085386dc1345db9587b9db61a076d..e0d5d014b5068491cc0c6162caf925b4f1458158 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -81,6 +81,8 @@ Library
 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__}