better timezone logic
This commit is contained in:
1 parent
a0e4154f26
commit
78b5f4f8aa
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user