Commit 1d88685b authored by 's avatar

Merged issue fixes from 2.3 branch

parent 4d674598
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.61 $'[11:-2] __version__='$Revision: 1.62 $'[11:-2]
import sys, os, math, regex, ts_regex, DateTimeZone import sys, os, math, regex, ts_regex, DateTimeZone
...@@ -187,7 +187,7 @@ class _cache: ...@@ -187,7 +187,7 @@ class _cache:
'UT','BST','CDT','MEST','SST','FST','WADT','EADT','NZDT', 'UT','BST','CDT','MEST','SST','FST','WADT','EADT','NZDT',
'WET','WAT','AT','AST','NT','IDLW','CET','MET', 'WET','WAT','AT','AST','NT','IDLW','CET','MET',
'MEWT','SWT','FWT','EET','BT','ZP4','ZP5','ZP6', 'MEWT','SWT','FWT','EET','EEST','BT','ZP4','ZP5','ZP6',
'WAST','CCT','JST','EAST','GST','NZT','NZST','IDLE'] 'WAST','CCT','JST','EAST','GST','NZT','NZST','IDLE']
...@@ -292,6 +292,7 @@ class _cache: ...@@ -292,6 +292,7 @@ class _cache:
'nt':'GMT-11', 'idlw':'GMT-12', 'cet':'GMT+1', 'cest':'GMT+2', 'nt':'GMT-11', 'idlw':'GMT-12', 'cet':'GMT+1', 'cest':'GMT+2',
'met':'GMT+1', 'met':'GMT+1',
'mewt':'GMT+1', 'swt':'GMT+1', 'fwt':'GMT+1', 'eet':'GMT+2', 'mewt':'GMT+1', 'swt':'GMT+1', 'fwt':'GMT+1', 'eet':'GMT+2',
'eest':'GMT+3',
'bt':'GMT+3', 'zp4':'GMT+4', 'zp5':'GMT+5', 'zp6':'GMT+6', 'bt':'GMT+3', 'zp4':'GMT+4', 'zp5':'GMT+5', 'zp6':'GMT+6',
'wast':'GMT+7', 'cct':'GMT+8', 'jst':'GMT+9', 'east':'GMT+10', 'wast':'GMT+7', 'cct':'GMT+8', 'jst':'GMT+9', 'east':'GMT+10',
'gst':'GMT+10', 'nzt':'GMT+12', 'nzst':'GMT+12', 'idle':'GMT+12', 'gst':'GMT+10', 'nzt':'GMT+12', 'nzst':'GMT+12', 'idle':'GMT+12',
...@@ -323,11 +324,6 @@ def _findLocalTimeZoneName(isDST): ...@@ -323,11 +324,6 @@ def _findLocalTimeZoneName(isDST):
# Get the name of the current time zone depending # Get the name of the current time zone depending
# on DST. # on DST.
_localzone = _cache._zmap[lower(tzname[isDST])] _localzone = _cache._zmap[lower(tzname[isDST])]
except:
try:
# Get the name of the current time zone, not
# depending on DST.
_localzone = _cache._zmap[lower(tzname[0])]
except: except:
try: try:
# Generate a GMT-offset zone name. # Generate a GMT-offset zone name.
......
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