Django

Code

Changeset 6358

Show
Ignore:
Timestamp:
09/16/07 06:59:56 (1 year ago)
Author:
mtredinnick
Message:

Fixed #2633 -- Fixed timezone computation in O() format function, using fix from [6300].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/dateformat.py

    r6275 r6358  
    167167    def O(self): 
    168168        "Difference to Greenwich time in hours; e.g. '+0200'" 
    169         tz = self.timezone.utcoffset(self.data
    170         return u"%+03d%02d" % (tz.seconds // 3600, (tz.seconds // 60) % 60) 
     169        seconds = self.Z(
     170        return u"%+03d%02d" % (seconds // 3600, (seconds // 60) % 60) 
    171171 
    172172    def r(self):