From: Matthias Klose Date: Mon, 16 Aug 2004 12:10:12 +0000 (+0000) Subject: - pygettext.py: Generate POT-Creation-Date header in ISO format. X-Git-Tag: v2.4a3~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2443d4ab5d42816210a4a2247804d72e5286d2fd;p=python - pygettext.py: Generate POT-Creation-Date header in ISO format. --- diff --git a/Misc/NEWS b/Misc/NEWS index 9ea0db1a7d..e0d5d014b5 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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 f0488bf65d..bb0dd35da9 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__}