iwla

iwla Commit Details

Date:2014-12-31 18:00:10 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:e7e988657ee7a8449622f771e0327a7a43ef1e8b
Parents: 24c9807aa8d9dec5f7a2f4ad44d4782844df8cf5
Message:Deactivate UTC time computation

Changes:
Miwla.py (1 diff)

File differences

iwla.py
352352
353353
354354
355
356
357
358
355
356
357
358
359359
360360
361361
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']

Archive Download the corresponding diff file

Branches

Tags