summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9091617)
raw | patch | inline | side by side (parent: 9091617)
| author | kedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
| Sun, 23 Feb 2003 19:05:15 +0000 (19:05 +0000) | ||
| committer | kedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
| Sun, 23 Feb 2003 19:05:15 +0000 (19:05 +0000) |
fix in history displaying of date fields changes
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1540 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1540 57a73879-2fb5-44c3-a270-3262357dd7e2
| roundup/cgi/templating.py | patch | blob | history | |
| roundup/date.py | patch | blob | history |
index c2ec5d08cdc01a482c59b6e40b24c9f9fca74016..3e174c1fdde2a5abe921a0cedacbf66f6d54a410 100644 (file)
d = date.Date(args[k]).local(timezone)
cell.append('%s: %s'%(k, str(d)))
if current.has_key(k):
- if not current[k] == '(no value)' and current[k]:
- current[k] = date.Date(current[k]).local(timezone)
cell[-1] += ' -> %s' % current[k]
current[k] = str(d)
diff --git a/roundup/date.py b/roundup/date.py
index fb4574f0a9fdd3af70fcd2107a52c47422a876b8..a5bb8a922796567b9572c9d939aaf9032cc5085d 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.42 2003-02-07 02:33:34 richard Exp $
+# $Id: date.py,v 1.43 2003-02-23 19:05:14 kedder Exp $
__doc__ = """
Date, time and time interval handling.
d = int(info['d'])
if info['y'] is not None:
y = int(info['y'])
- # time defaults to 00:00:00 now
- H = M = S = 0
+ # time defaults to 00:00:00 GMT - offset (local midnight)
+ H = -offset
+ M = S = 0
# override hour, minute, second parts
if info['H'] is not None and info['M'] is not None: