JS: Times: Add timezone prop to TimeInfo.

This commit is contained in:
Konstantin Molchanov
2017-03-21 13:50:43 +04:00
parent 2d0ee2c8ab
commit 742c7e1179

View File

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