mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-08 04:44:20 +00:00
Merge branch 'fix_time_offset_in_times_js' into improve-times-for-js
This commit is contained in:
@@ -625,7 +625,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