Fixed a small bug in timezone generation
This commit is contained in:
parent
66fa0eb0e8
commit
aa462baa33
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ s:option(Value, "hostname", translate("hostname"))
|
|||
tz = s:option(ListValue, "timezone", translate("timezone"))
|
||||
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
||||
local zone = k:upper()
|
||||
local osgn = (offset > 0 and "" or "+")
|
||||
local osgn = (offset >= 0 and "" or "+")
|
||||
local ohrs = math.floor(-offset / 3600)
|
||||
local omin = (offset % 3600) / 60
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ s:option(Value, "hostname", translate("hostname"))
|
|||
tz = s:option(ListValue, "timezone", translate("timezone"))
|
||||
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
||||
local zone = k:upper()
|
||||
local osgn = (offset > 0 and "" or "+")
|
||||
local osgn = (offset >= 0 and "" or "+")
|
||||
local ohrs = math.floor(-offset / 3600)
|
||||
local omin = (offset % 3600) / 60
|
||||
|
||||
|
|
Loading…
Reference in a new issue