From 16bb2907a2c85ffe477736cf1a1585bdcf9d264d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 Nov 2008 14:53:13 +0000 Subject: [PATCH] * luci/modules/admin-{mini,full}: allow custom values in timezone selection --- modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 2 +- modules/admin-mini/luasrc/model/cbi/mini/system.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 "+") -- 2.25.1