Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2633 -- Fixed timezone computation in O() format function, usi…

…ng fix from [6300].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 68884a571ffa49a93898f0368f64638c31623fb7 1 parent c012b89
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/dateformat.py
View
4 django/utils/dateformat.py
@@ -166,8 +166,8 @@ def N(self):
def O(self):
"Difference to Greenwich time in hours; e.g. '+0200'"
- tz = self.timezone.utcoffset(self.data)
- return u"%+03d%02d" % (tz.seconds // 3600, (tz.seconds // 60) % 60)
+ seconds = self.Z()
+ return u"%+03d%02d" % (seconds // 3600, (seconds // 60) % 60)
def r(self):
"RFC 822 formatted date; e.g. 'Thu, 21 Dec 2000 16:01:07 +0200'"
Please sign in to comment.
Something went wrong with that request. Please try again.