Commit 716ce22a authored by 's avatar

Fixed a name bug in the DateTime code that figures out the fallback

GMT+- based timezone name.
parent 1299d08f
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.38 $'[11:-2] __version__='$Revision: 1.39 $'[11:-2]
import sys, os, math, regex, ts_regex, DateTimeZone import sys, os, math, regex, ts_regex, DateTimeZone
...@@ -684,7 +684,7 @@ class DateTime: ...@@ -684,7 +684,7 @@ class DateTime:
localzone=mktime(gmtime(t))-t localzone=mktime(gmtime(t))-t
localzone=int(round(-localzone/(60*60))) localzone=int(round(-localzone/(60*60)))
if localzone >= 0: if localzone >= 0:
zn='+%d' % localzone lz='+%d' % localzone
else: lz=str(localzone) else: lz=str(localzone)
_localzone=_cache._zmap[lower('GMT%s' % lz)] _localzone=_cache._zmap[lower('GMT%s' % lz)]
except: _localzone='' except: _localzone=''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment