- pygettext.py: Generate POT-Creation-Date header in ISO format.

This commit is contained in:
Matthias Klose 2004-08-16 12:10:12 +00:00
parent a2542bee59
commit 2443d4ab5d
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,8 @@ Library
Tools/Demos
-----------
- pygettext.py: Generate POT-Creation-Date header in ISO format.
Build
-----

View file

@ -445,7 +445,7 @@ def set_filename(self, filename):
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__}