diff options
-rw-r--r-- | Misc/NEWS | 2 | ||||
-rwxr-xr-x | Tools/i18n/pygettext.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -81,6 +81,8 @@ Library 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 f0488bf..bb0dd35 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__} |