# HG changeset patch # User Matthew Wild # Date 1302903593 -3600 # Node ID 7b456af75c77a636809dc368f7319df12836f1c6 # Parent 896e8793e7a47513829bd93ed14288f6b42bcff9 util.datetime: Fix timestamp parsing when in DST (thanks xnyhps) diff -r 896e8793e7a4 -r 7b456af75c77 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