summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-31 09:04:30 +0000
committerSteven Barth <steven@midlink.org>2008-07-31 09:04:30 +0000
commitaa462baa33bf0c85448e9d7779d81ab70827b56f (patch)
tree43577994badf0a5211244986a78e9cd4ca92d033 /modules/admin-full/luasrc/model
parent66fa0eb0e8e206d26e16615941c60b22b5004649 (diff)
Fixed a small bug in timezone generation
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_system/system.lua2
1 files changed, 1 insertions, 1 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 4e6342d7e..6cc5c495f 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
@@ -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