From e7e988657ee7a8449622f771e0327a7a43ef1e8b Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Wed, 31 Dec 2014 18:00:10 +0100 Subject: [PATCH] Deactivate UTC time computation --- iwla.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iwla.py b/iwla.py index 1b2e72c..3d9fd73 100755 --- a/iwla.py +++ b/iwla.py @@ -352,10 +352,10 @@ class IWLA(object): gmt_offset_minutes = int(gmt_offset_str[3:5])*60 gmt_offset = gmt_offset_hours + gmt_offset_minutes hit['time_decoded'] = time.strptime(hit['time_local'][:-6], conf.time_format[:-3]) - if gmt_offset_str[0] == '-': - hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])+gmt_offset) - else: - hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])-gmt_offset) + # if gmt_offset_str[0] == '-': + # hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])+gmt_offset) + # else: + # hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])-gmt_offset) else: raise e return hit['time_decoded']