Zope 2.12 DateTime keeps consistency between the tz received and the tz displayed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32073 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc29563a
......@@ -162,7 +162,7 @@ class TestDateUtils(unittest.TestCase):
self.assertEqual(date, '2008-11-03')
def test_atTheEndOfPeriod(self):
date = DateTime('2008/01/01 00:00:00 UTC')
date = DateTime('2008/01/01 00:00:00 Universal')
self.assertEqual(atTheEndOfPeriod(date, 'year').pCommonZ(), 'Jan. 1, 2009 12:00 am Universal')
self.assertEqual(atTheEndOfPeriod(date, 'month').pCommonZ(), 'Feb. 1, 2008 12:00 am Universal')
self.assertEqual(atTheEndOfPeriod(date, 'week').pCommonZ(), 'Jan. 7, 2008 12:00 am Universal')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment