util/datetime.lua
changeset 3643 2dc342a13f35
parent 3642 ed80c4c56b9c
child 4250 7b456af75c77
--- a/util/datetime.lua	Sat Nov 27 01:22:43 2010 +0000
+++ b/util/datetime.lua	Sat Nov 27 01:30:56 2010 +0000
@@ -48,7 +48,7 @@
 				tzd_offset = h * 60 * 60 + m * 60;
 				if sign == "-" then tzd_offset = -tzd_offset; end
 			end
-			sec = sec + time_offset + tzd_offset;
+			sec = (sec + time_offset) - tzd_offset;
 			return os_time({year=year, month=month, day=day, hour=hour, min=min, sec=sec});
 		end
 	end