Fixed fromSeconds function JS variant

This commit is contained in:
Yuriy Glukhov
2015-08-12 18:31:38 +03:00
parent d230b75e0a
commit ad98877584

View File

@@ -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