From: Matthew Wild Date: Fri, 15 Apr 2011 21:39:53 +0000 (+0100) Subject: util.datetime: Fix timestamp parsing when in DST (thanks xnyhps) X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=4e8ce7c3dea252cda77d3e7de92459aa1b330d05;p=prosody.git util.datetime: Fix timestamp parsing when in DST (thanks xnyhps) --- 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