From 4ff48cecfd6ae3a630f92bd0b2bcc6a89c8408c8 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 15 Apr 2011 22:39:53 +0100 Subject: util.datetime: Fix timestamp parsing when in DST (thanks xnyhps) --- util/datetime.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/datetime.lua') diff --git a/util/datetime.lua b/util/datetime.lua index 301a49a5..c73d8e76 100644 --- a/util/datetime.lua +++ b/util/datetime.lua @@ -49,7 +49,7 @@ function parse(s) 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 -- cgit v1.2.3