From 24c9807aa8d9dec5f7a2f4ad44d4782844df8cf5 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Wed, 31 Dec 2014 17:59:28 +0100 Subject: [PATCH] Bug in UTC time computation --- iwla.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iwla.py b/iwla.py index 493ab19..1b2e72c 100755 --- a/iwla.py +++ b/iwla.py @@ -352,7 +352,7 @@ 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] == '+': + 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)