Bug in UTC time computation

This commit is contained in:
Gregory Soutade 2014-12-31 17:59:28 +01:00
parent 9ed038d4ea
commit 24c9807aa8
1 changed files with 1 additions and 1 deletions

View File

@ -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)