Skip to content

Commit

Permalink
Revert date format fix, strformat %z does not work on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
menesis committed Feb 18, 2012
1 parent b0a9cfd commit 12a96dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGES.txt
Expand Up @@ -5,7 +5,6 @@ CHANGES
3.7.4 (unreleased)
------------------

- Write POT creation date in standard format.


3.7.3 (2012-01-06)
Expand Down
3 changes: 1 addition & 2 deletions src/zope/app/locales/extract.py
Expand Up @@ -181,8 +181,7 @@ def _getProductVersion(self):

def write(self):
file = open(self._output_filename, 'w')
ztime = time.strftime('%Y-%m-%d %H:%M%z')
file.write(pot_header % {'time': ztime,
file.write(pot_header % {'time': time.ctime(),
'version': self._getProductVersion(),
'charset': DEFAULT_CHARSET,
'encoding': DEFAULT_ENCODING})
Expand Down
2 changes: 1 addition & 1 deletion src/zope/app/locales/tests.py
Expand Up @@ -195,7 +195,7 @@ def doctest_POTMaker_write():
msgid ""
msgstr ""
"Project-Id-Version: Meaningless\n"
"POT-Creation-Date: ...-...-... ...:...0\n"
"POT-Creation-Date: ...\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev@zope.org>\n"
Expand Down

0 comments on commit 12a96dd

Please sign in to comment.