diff roundup/date.py @ 1463:a11e27d80737

If no hours info is provided to Date constructors... ...it defaults to local midnight, not GMT [SF#691434] fix in history displaying of date fields changes
author Andrey Lebedev <kedder@users.sourceforge.net>
date Sun, 23 Feb 2003 19:05:15 +0000
parents 4ae9d725bec4
children 37a1906f4454
line wrap: on
line diff
--- a/roundup/date.py	Sat Feb 22 06:47:04 2003 +0000
+++ b/roundup/date.py	Sun Feb 23 19:05:15 2003 +0000
@@ -15,7 +15,7 @@
 # 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.
@@ -253,8 +253,9 @@
             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:

Roundup Issue Tracker: http://roundup-tracker.org/