Changeset

4254:aa905291a66c

util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
author Matthew Wild <mwild1@gmail.com>
date Fri, 15 Apr 2011 22:39:53 +0100
parents 4253:96a30cddef7a
children 4255:0c525524f2dc 4256:2f1397b7b1d5
files util/datetime.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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