Deactivate UTC time computation
This commit is contained in:
parent
24c9807aa8
commit
e7e988657e
8
iwla.py
8
iwla.py
|
@ -352,10 +352,10 @@ class IWLA(object):
|
||||||
gmt_offset_minutes = int(gmt_offset_str[3:5])*60
|
gmt_offset_minutes = int(gmt_offset_str[3:5])*60
|
||||||
gmt_offset = gmt_offset_hours + gmt_offset_minutes
|
gmt_offset = gmt_offset_hours + gmt_offset_minutes
|
||||||
hit['time_decoded'] = time.strptime(hit['time_local'][:-6], conf.time_format[:-3])
|
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)
|
# hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])+gmt_offset)
|
||||||
else:
|
# else:
|
||||||
hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])-gmt_offset)
|
# hit['time_decoded'] = time.localtime(time.mktime(hit['time_decoded'])-gmt_offset)
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
return hit['time_decoded']
|
return hit['time_decoded']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user