summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01b3f48)
raw | patch | inline | side by side (parent: 01b3f48)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 16 Dec 2002 04:39:36 +0000 (04:39 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 16 Dec 2002 04:39:36 +0000 (04:39 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1412 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
doc/index.txt | patch | blob | history | |
roundup/date.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 28cc97e3ddaf5342e69b85819fe6bc8d70d04895..591e41a580598d318b23729e7317bf30db9056ad 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
- key the templates cache off full path, not filename
- implemented whole-database locking
- hyperlinking of special text (url, email, item designator) in messages
+- fixed time default in date.py
2002-12-11 0.5.3
diff --git a/doc/index.txt b/doc/index.txt
index cae0ab873d8b7f5017d4116d561e7cc7f9828151..0e707c0bcb1752e07f4d4c34f6412da05f556e61 100644 (file)
--- a/doc/index.txt
+++ b/doc/index.txt
Patrick Ohly,
Will Partain,
Bernhard Reiter,
+John P. Rouillard,
Dougal Scott,
Stefan Seefeld,
Jeffrey P Shell,
diff --git a/roundup/date.py b/roundup/date.py
index aee9acd3f4abd584f53055f55347c399a25fc0ae..d98e586989486348f7dd10d75b00e672c0057c75 100644 (file)
--- a/roundup/date.py
+++ b/roundup/date.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: date.py,v 1.37 2002-12-09 02:43:21 richard Exp $
+# $Id: date.py,v 1.38 2002-12-16 04:39:36 richard Exp $
__doc__ = """
Date, time and time interval handling.
info = m.groupdict()
- # get the current date/time using the offset
- y,m,d,H,M,S,x,x,x = time.gmtime(time.time())
+ # get the current date as our default
+ y,m,d = time.gmtime(time.time())[:3]
+
+ # time defaults to 00:00:00 _always_
+ H = M = S = 0
# override year, month, day parts
if info['m'] is not None and info['d'] is not None:
m = int(info['m'])
d = int(info['d'])
- if info['y'] is not None: y = int(info['y'])
- H = M = S = 0
+ if info['y'] is not None:
+ y = int(info['y'])
# override hour, minute, second parts
if info['H'] is not None and info['M'] is not None: