Fixed issue 3905 with getTimezone in js
This commit is contained in:
parent
cce64c3357
commit
5cfb653094
1 changed files with 1 additions and 1 deletions
|
|
@ -635,7 +635,7 @@ elif defined(JS):
|
||||||
|
|
||||||
proc toSeconds(time: Time): float = result = time.getTime() / 1000
|
proc toSeconds(time: Time): float = result = time.getTime() / 1000
|
||||||
|
|
||||||
proc getTimezone(): int = result = newDate().getTimezoneOffset()
|
proc getTimezone(): int = result = newDate().getTimezoneOffset() * 60
|
||||||
|
|
||||||
proc epochTime*(): float {.tags: [TimeEffect].} = newDate().toSeconds()
|
proc epochTime*(): float {.tags: [TimeEffect].} = newDate().toSeconds()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue