From 5cab46f2a111cd823d788276c7df923910b336ae Mon Sep 17 00:00:00 2001 From: mdipierro Date: Fri, 31 Aug 2012 16:04:13 -0500 Subject: [PATCH] better timezone logic --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 64f199aa..ada29361 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.4 (2012-08-31 16:00:18) stable +Version 2.0.4 (2012-08-31 16:04:08) stable diff --git a/gluon/dal.py b/gluon/dal.py index 341b3e81..8b968803 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -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: