better timezone logic

This commit is contained in:
mdipierro
2012-08-31 16:04:13 -05:00
parent 08443a452d
commit 5cab46f2a1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.0.4 (2012-08-31 16:00:18) stable
Version 2.0.4 (2012-08-31 16:04:08) stable
+1 -1
View File
@@ -1800,7 +1800,7 @@ class BaseAdapter(ConnectionPool):
h,m = tz.split(':')
dt = datetime.timedelta(seconds=3600*int(h)+60*int(m))
elif '-' in timezone:
ms,tz = value.split('-')
ms,tz = timezone.split('-')
h,m = tz.split(':')
dt = -datetime.timedelta(seconds=3600*int(h)+60*int(m))
else: