Skip to content

Commit e89d1b4

Browse files
committed
- pygettext.py: Generate POT-Creation-Date header in ISO format.
1 parent c1a97ef commit e89d1b4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ Library
9494

9595
- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).
9696

97+
Tools/Demos
98+
-----------
99+
100+
- pygettext.py: Generate POT-Creation-Date header in ISO format.
101+
97102
Build
98103
-----
99104

Tools/i18n/pygettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def set_filename(self, filename):
445445

446446
def write(self, fp):
447447
options = self.__options
448-
timestamp = time.ctime(time.time())
448+
timestamp = time.strftime('%Y-%m-%d %H:%M+%Z')
449449
# The time stamp in the header doesn't have the same format as that
450450
# generated by xgettext...
451451
print >> fp, pot_header % {'time': timestamp, 'version': __version__}

0 commit comments

Comments
 (0)