* luci/modules/admin-{mini,full}: allow custom values in timezone selection
This commit is contained in:
parent
cd33263aed
commit
16bb2907a2
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ s:option(DummyValue, "_uptime", translate("m_i_uptime")).value =
|
||||||
|
|
||||||
s:option(Value, "hostname", translate("hostname"))
|
s:option(Value, "hostname", translate("hostname"))
|
||||||
|
|
||||||
tz = s:option(ListValue, "timezone", translate("timezone"))
|
tz = s:option(Value, "timezone", translate("timezone"))
|
||||||
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
||||||
local zone = k:upper()
|
local zone = k:upper()
|
||||||
local osgn = (offset >= 0 and "" or "+")
|
local osgn = (offset >= 0 and "" or "+")
|
||||||
|
|
|
@ -55,7 +55,7 @@ s:option(DummyValue, "_uptime", translate("m_i_uptime")).value =
|
||||||
|
|
||||||
s:option(Value, "hostname", translate("hostname"))
|
s:option(Value, "hostname", translate("hostname"))
|
||||||
|
|
||||||
tz = s:option(ListValue, "timezone", translate("timezone"))
|
tz = s:option(Value, "timezone", translate("timezone"))
|
||||||
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
for k, offset in luci.util.vspairs(luci.http.protocol.date.TZ) do
|
||||||
local zone = k:upper()
|
local zone = k:upper()
|
||||||
local osgn = (offset >= 0 and "" or "+")
|
local osgn = (offset >= 0 and "" or "+")
|
||||||
|
|
Loading…
Reference in a new issue