Times: JS: Remove implicit UTC convesion.
The conversion would produce incorrect timestamp.
This commit is contained in:
parent
d02486aa48
commit
3ebffb2a00
1 changed files with 1 additions and 1 deletions
|
|
@ -619,7 +619,7 @@ elif defined(JS):
|
||||||
result.setMonth(ord(timeInfo.month))
|
result.setMonth(ord(timeInfo.month))
|
||||||
result.setFullYear(timeInfo.year)
|
result.setFullYear(timeInfo.year)
|
||||||
result.setDate(timeInfo.monthday)
|
result.setDate(timeInfo.monthday)
|
||||||
result.setSeconds(timeInfo.second + timeInfo.timezone)
|
result.setSeconds(timeInfo.second)
|
||||||
|
|
||||||
proc `-` (a, b: Time): int64 =
|
proc `-` (a, b: Time): int64 =
|
||||||
return a.getTime() - b.getTime()
|
return a.getTime() - b.getTime()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue