mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
Merge pull request #3206 from yglukhov/patch-1
Fixed fromSeconds function JS variant
This commit is contained in:
@@ -550,7 +550,7 @@ elif defined(JS):
|
||||
|
||||
proc valueOf(time: Time): float {.importcpp: "getTime", tags:[]}
|
||||
|
||||
proc fromSeconds(since1970: float): Time = result = newDate(since1970)
|
||||
proc fromSeconds(since1970: float): Time = result = newDate(since1970 * 1000)
|
||||
|
||||
proc toSeconds(time: Time): float = result = time.valueOf() / 1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user