mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
- pygettext.py: Generate POT-Creation-Date header in ISO format.
This commit is contained in:
parent
a2542bee59
commit
2443d4ab5d
2 changed files with 3 additions and 1 deletions
|
@ -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__}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue