diff options
author | R David Murray <rdmurray@bitdance.com> | 2015-04-16 16:15:09 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2015-04-16 16:15:09 (GMT) |
commit | 2b78129b3a2431d0ef80ec56aec084bf846bdef0 (patch) | |
tree | 2e83e44a3a533293e5104958f41030e00a2ef9fd /Tools/i18n | |
parent | 29fbd21d73dfecc1bb05e98d6da7fbab55ad15b4 (diff) | |
download | cpython-2b78129b3a2431d0ef80ec56aec084bf846bdef0.zip cpython-2b78129b3a2431d0ef80ec56aec084bf846bdef0.tar.gz cpython-2b78129b3a2431d0ef80ec56aec084bf846bdef0.tar.bz2 |
#18128: use standard +NNNN timezone format in POT-Creation-Date header.
Patch by Michael McFadden, with a few small style tweaks.
Diffstat (limited to 'Tools/i18n')
-rwxr-xr-x | Tools/i18n/pygettext.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Tools/i18n/pygettext.py b/Tools/i18n/pygettext.py index 9ffeb17..3c6c14c 100755 --- a/Tools/i18n/pygettext.py +++ b/Tools/i18n/pygettext.py @@ -441,9 +441,7 @@ class TokenEater: def write(self, fp): options = self.__options - 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... + timestamp = time.strftime('%Y-%m-%d %H:%M%z') encoding = fp.encoding if fp.encoding else 'UTF-8' print(pot_header % {'time': timestamp, 'version': __version__, 'charset': encoding, |