iwla

iwla Commit Details

Date:2014-12-31 17:59:28 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:24c9807aa8d9dec5f7a2f4ad44d4782844df8cf5
Parents: 9ed038d4ea6046ee4660b6ed1820de5c449ea1e0
Message:Bug in UTC time computation

Changes:
Miwla.py (1 diff)

File differences

iwla.py
352352
353353
354354
355
355
356356
357357
358358
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)

Archive Download the corresponding diff file

Branches

Tags