Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2443d4a

Browse files
committed
- pygettext.py: Generate POT-Creation-Date header in ISO format.
1 parent a2542be commit 2443d4a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ Library
8181
Tools/Demos
8282
-----------
8383

84+
- pygettext.py: Generate POT-Creation-Date header in ISO format.
85+
8486
Build
8587
-----
8688

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)