Mercurial > babel > old > babel-test
changeset 456:c139e487a885 stable-0.9.x
Backport r500 to 0.9.x stable branch.
author | cmlenz |
---|---|
date | Tue, 06 Apr 2010 11:48:54 +0000 |
parents | 2819078c55c4 |
children | 430a987dc1e6 |
files | babel/dates.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/babel/dates.py +++ b/babel/dates.py @@ -207,7 +207,7 @@ datetime = datetime.replace(tzinfo=UTC) locale = Locale.parse(locale) - offset = datetime.utcoffset() + offset = datetime.tzinfo.utcoffset(datetime) seconds = offset.days * 24 * 60 * 60 + offset.seconds hours, seconds = divmod(seconds, 3600) if width == 'short':