diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-04-15 22:39:53 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-04-15 22:39:53 +0100 |
commit | 82cd5744202346d586b6c8c0cb344cad74a34564 (patch) | |
tree | 57bdd1b3d7cd031474e633ea001cd166d8891be5 | |
parent | 7e4d78bef216a7df7ecc39548cc6d6ea1cdacba4 (diff) | |
download | prosody-82cd5744202346d586b6c8c0cb344cad74a34564.tar.gz prosody-82cd5744202346d586b6c8c0cb344cad74a34564.zip |
util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
-rw-r--r-- | util/datetime.lua | 2 |
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 |