mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
JS: Times: Add timezone prop to TimeInfo. (#5581)
This commit is contained in:
committed by
Andreas Rumpf
parent
0d8a503e45
commit
80ffae62fb
@@ -598,6 +598,7 @@ elif defined(JS):
|
||||
result.year = t.getFullYear()
|
||||
result.weekday = weekDays[t.getDay()]
|
||||
result.yearday = 0
|
||||
result.timezone = getTimezone()
|
||||
|
||||
proc getGMTime(t: Time): TimeInfo =
|
||||
result.second = t.getUTCSeconds()
|
||||
|
||||
Reference in New Issue
Block a user