Merge pull request #3206 from yglukhov/patch-1
Fixed fromSeconds function JS variant
This commit is contained in:
commit
6041025dab
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue