Skip to content

Commit 701a50a

Browse files
author
Andrey Lebedev
committed
time should default to local midnight, not GMT
1 parent fc2d29a commit 701a50a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_dates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: test_dates.py,v 1.16 2003-01-12 00:43:43 richard Exp $
18+
# $Id: test_dates.py,v 1.17 2003-02-24 15:38:51 kedder Exp $
1919

2020
import unittest, time
2121

@@ -56,10 +56,10 @@ def testDate(self):
5656
def testOffset(self):
5757
ae = self.assertEqual
5858
date = Date("2000-04-17", -5)
59-
ae(str(date), '2000-04-17.00:00:00')
59+
ae(str(date), '2000-04-17.05:00:00')
6060
date = Date("01-25", -5)
6161
y, m, d, x, x, x, x, x, x = time.gmtime(time.time())
62-
ae(str(date), '%s-01-25.00:00:00'%y)
62+
ae(str(date), '%s-01-25.05:00:00'%y)
6363
date = Date("2000-04-17.03:45", -5)
6464
ae(str(date), '2000-04-17.08:45:00')
6565
date = Date("08-13.22:13", -5)

0 commit comments

Comments
 (0)