Skip to content

Commit 6f982cb

Browse files
author
Richard Jones
committed
Fixed the 2.1-specific gmtime() (no arg) call in roundup.date. (Paul Wright)
1 parent 2f0904f commit 6f982cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/date.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: date.py,v 1.5 2001-07-29 07:01:39 richard Exp $
1+
# $Id: date.py,v 1.6 2001-07-31 09:54:18 richard Exp $
22

33
import time, re, calendar
44

@@ -163,7 +163,7 @@ def set(self, spec, offset=0, date_re=re.compile(r'''
163163
info = m.groupdict()
164164

165165
# get the current date/time using the offset
166-
y,m,d,H,M,S,x,x,x = time.gmtime()
166+
y,m,d,H,M,S,x,x,x = time.gmtime(time.time())
167167

168168
# override year, month, day parts
169169
if info['m'] is not None and info['d'] is not None:
@@ -355,6 +355,9 @@ def test():
355355

356356
#
357357
# $Log: not supported by cvs2svn $
358+
# Revision 1.5 2001/07/29 07:01:39 richard
359+
# Added vim command to all source so that we don't get no steenkin' tabs :)
360+
#
358361
# Revision 1.4 2001/07/25 04:09:34 richard
359362
# Fixed offset handling (shoulda read the spec a little better)
360363
#

0 commit comments

Comments
 (0)