JS: Times: Add timezone prop to TimeInfo.
This commit is contained in:
parent
2d0ee2c8ab
commit
742c7e1179
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue