aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-04-15 22:39:53 +0100
committerMatthew Wild <mwild1@gmail.com>2011-04-15 22:39:53 +0100
commit82cd5744202346d586b6c8c0cb344cad74a34564 (patch)
tree57bdd1b3d7cd031474e633ea001cd166d8891be5 /util/datetime.lua
parent7e4d78bef216a7df7ecc39548cc6d6ea1cdacba4 (diff)
downloadprosody-82cd5744202346d586b6c8c0cb344cad74a34564.tar.gz
prosody-82cd5744202346d586b6c8c0cb344cad74a34564.zip
util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
Diffstat (limited to 'util/datetime.lua')
-rw-r--r--util/datetime.lua2
1 files changed, 1 insertions, 1 deletions
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