From 3ebffb2a006dc306084b304cdfb5f7cfd74b659f Mon Sep 17 00:00:00 2001 From: Konstantin Molchanov Date: Sun, 26 Mar 2017 23:50:02 +0400 Subject: [PATCH] Times: JS: Remove implicit UTC convesion. The conversion would produce incorrect timestamp. --- lib/pure/times.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/times.nim b/lib/pure/times.nim index fe35c404c6..f85c7f4b1a 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -619,7 +619,7 @@ elif defined(JS): result.setMonth(ord(timeInfo.month)) result.setFullYear(timeInfo.year) result.setDate(timeInfo.monthday) - result.setSeconds(timeInfo.second + timeInfo.timezone) + result.setSeconds(timeInfo.second) proc `-` (a, b: Time): int64 = return a.getTime() - b.getTime()