From: Jo-Philipp Wich Date: Thu, 6 Nov 2008 14:53:13 +0000 (+0000) Subject: * luci/modules/admin-{mini,full}: allow custom values in timezone selection X-Git-Tag: 0.9.0~999 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=16bb2907a2c85ffe477736cf1a1585bdcf9d264d * luci/modules/admin-{mini,full}: allow custom values in timezone selection --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua index 9967ce933..e0e2b1cbc 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua @@ -48,7 +48,7 @@ s:option(DummyValue, "_uptime", translate("m_i_uptime")).value = 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 local zone = k:upper() local osgn = (offset >= 0 and "" or "+") diff --git a/modules/admin-mini/luasrc/model/cbi/mini/system.lua b/modules/admin-mini/luasrc/model/cbi/mini/system.lua index c9e8c7f6f..a1ed1282c 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/system.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/system.lua @@ -55,7 +55,7 @@ s:option(DummyValue, "_uptime", translate("m_i_uptime")).value = 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 local zone = k:upper() local osgn = (offset >= 0 and "" or "+")