Times: JS: Remove implicit UTC convesion.

The conversion would produce incorrect timestamp.
This commit is contained in:
Konstantin Molchanov
2017-03-26 23:50:02 +04:00
parent d02486aa48
commit 3ebffb2a00

View File

@@ -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()