diff roundup/cgi/templating.py @ 3384:6d6d7e331c54 maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 12 Jul 2005 01:43:17 +0000
parents 632ccccc2aec
children a955987327c2
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Jul 07 06:44:35 2005 +0000
+++ b/roundup/cgi/templating.py	Tue Jul 12 01:43:17 2005 +0000
@@ -1396,6 +1396,8 @@
                 isinstance(self._value, unicode)):
             self._value.setTranslator(self._client.translator)
         self._offset = offset
+        if self._offset is None :
+            self._offset = self._prop.offset (self._db)
 
     def plain(self):
         ''' Render a "plain" representation of the property
@@ -1480,8 +1482,11 @@
             else:
                 value = date.Date(raw_value).pretty(format)
         else:
-            tz = self._db.getUserTimezone()
-            value = raw_value.local(tz)
+            if self._offset is None :
+                offset = self._db.getUserTimezone()
+            else :
+                offset = self._offset
+            value = raw_value.local(offset)
             if format is not self._marker:
                 value = value.pretty(format)
 

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