# HG changeset patch # User Matthew Wild # Date 1302903593 -3600 # Node ID aa905291a66c7d8168b1cb912bb173e6478dac05 # Parent 96a30cddef7a7339f727dd0b2066f079198fffb0 util.datetime: Fix timestamp parsing when in DST (thanks xnyhps) diff -r 96a30cddef7a -r aa905291a66c util/datetime.lua --- a/util/datetime.lua Thu Apr 14 22:40:50 2011 +0100 +++ b/util/datetime.lua Fri Apr 15 22:39:53 2011 +0100 @@ -49,7 +49,7 @@ if sign == "-" then tzd_offset = -tzd_offset; end end sec = (sec + time_offset) - tzd_offset; - return os_time({year=year, month=month, day=day, hour=hour, min=min, sec=sec}); + return os_time({year=year, month=month, day=day, hour=hour, min=min, sec=sec, isdst=false}); end end end