From: kedder Date: Mon, 24 Feb 2003 15:38:51 +0000 (+0000) Subject: time should default to local midnight, not GMT X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=769fef8b2cfc7563e6782d1b77028b2216de3ae9;p=roundup.git time should default to local midnight, not GMT git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1543 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/test/test_dates.py b/test/test_dates.py index dc8a6dc..b16a8ca 100644 --- a/test/test_dates.py +++ b/test/test_dates.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.16 2003-01-12 00:43:43 richard Exp $ +# $Id: test_dates.py,v 1.17 2003-02-24 15:38:51 kedder Exp $ import unittest, time @@ -56,10 +56,10 @@ class DateTestCase(unittest.TestCase): def testOffset(self): ae = self.assertEqual date = Date("2000-04-17", -5) - ae(str(date), '2000-04-17.00:00:00') + ae(str(date), '2000-04-17.05:00:00') date = Date("01-25", -5) y, m, d, x, x, x, x, x, x = time.gmtime(time.time()) - ae(str(date), '%s-01-25.00:00:00'%y) + ae(str(date), '%s-01-25.05:00:00'%y) date = Date("2000-04-17.03:45", -5) ae(str(date), '2000-04-17.08:45:00') date = Date("08-13.22:13", -5)