Merge branch 'fix_time_offset_in_times_js' into improve-times-for-js
This commit is contained in:
commit
6a583b6d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,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