mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
Times: JS: Remove implicit UTC convesion.
The conversion would produce incorrect timestamp.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user