[Checkins] SVN: zope.app.locales/trunk/ Revert date format fix, strformat %z does not work on windows.
Gediminas Paulauskas
menesis at pov.lt
Sat Feb 18 23:51:07 UTC 2012
Log message for revision 124425:
Revert date format fix, strformat %z does not work on windows.
Changed:
U zope.app.locales/trunk/CHANGES.txt
U zope.app.locales/trunk/src/zope/app/locales/extract.py
U zope.app.locales/trunk/src/zope/app/locales/tests.py
-=-
Modified: zope.app.locales/trunk/CHANGES.txt
===================================================================
--- zope.app.locales/trunk/CHANGES.txt 2012-02-17 12:16:14 UTC (rev 124424)
+++ zope.app.locales/trunk/CHANGES.txt 2012-02-18 23:51:05 UTC (rev 124425)
@@ -5,7 +5,6 @@
3.7.4 (unreleased)
------------------
-- Write POT creation date in standard format.
3.7.3 (2012-01-06)
Modified: zope.app.locales/trunk/src/zope/app/locales/extract.py
===================================================================
--- zope.app.locales/trunk/src/zope/app/locales/extract.py 2012-02-17 12:16:14 UTC (rev 124424)
+++ zope.app.locales/trunk/src/zope/app/locales/extract.py 2012-02-18 23:51:05 UTC (rev 124425)
@@ -181,8 +181,7 @@
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})
Modified: zope.app.locales/trunk/src/zope/app/locales/tests.py
===================================================================
--- zope.app.locales/trunk/src/zope/app/locales/tests.py 2012-02-17 12:16:14 UTC (rev 124424)
+++ zope.app.locales/trunk/src/zope/app/locales/tests.py 2012-02-18 23:51:05 UTC (rev 124425)
@@ -195,7 +195,7 @@
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 at ADDRESS>\n"
"Language-Team: Zope 3 Developers <zope-dev at zope.org>\n"
More information about the checkins
mailing list