util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
authorMatthew Wild <mwild1@gmail.com>
Fri, 15 Apr 2011 22:39:53 +0100
changeset 4250 7b456af75c77
parent 4249 896e8793e7a4
child 4252 210639fb8fbe
util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
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