summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-11-06 14:53:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-11-06 14:53:13 +0000
commit16bb2907a2c85ffe477736cf1a1585bdcf9d264d (patch)
tree91ca9d59e1b5da5e45632d0a29f0387af0f8e533
parentcd33263aed27b0a962424237d8abb611748caf20 (diff)
* luci/modules/admin-{mini,full}: allow custom values in timezone selection
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/system.lua2
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/system.lua2
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 "+")