Skip to content

Commit f734ffd

Browse files
author
Richard Jones
committed
not quite right
1 parent c0aebbf commit f734ffd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roundup/date.py

Lines changed: 3 additions & 4 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: date.py,v 1.38 2002-12-16 04:39:36 richard Exp $
18+
# $Id: date.py,v 1.39 2002-12-16 05:03:02 richard Exp $
1919

2020
__doc__ = """
2121
Date, time and time interval handling.
@@ -247,15 +247,14 @@ def set(self, spec, offset=0, date_re=re.compile(r'''
247247
# get the current date as our default
248248
y,m,d = time.gmtime(time.time())[:3]
249249

250-
# time defaults to 00:00:00 _always_
251-
H = M = S = 0
252-
253250
# override year, month, day parts
254251
if info['m'] is not None and info['d'] is not None:
255252
m = int(info['m'])
256253
d = int(info['d'])
257254
if info['y'] is not None:
258255
y = int(info['y'])
256+
# time defaults to 00:00:00 now
257+
H = M = S = 0
259258

260259
# override hour, minute, second parts
261260
if info['H'] is not None and info['M'] is not None:

0 commit comments

Comments
 (0)