1 -- Licensed to the public under the Apache License 2.0.
3 local setmetatable, require, rawget, rawset = setmetatable, require, rawget, rawset
5 module "luci.sys.zoneinfo"
8 __index = function(t, k)
9 if k == "TZ" and not rawget(t, k) then
10 local m = require "luci.sys.zoneinfo.tzdata"
11 rawset(t, k, rawget(m, k))
12 elseif k == "OFFSET" and not rawget(t, k) then
13 local m = require "luci.sys.zoneinfo.tzoffset"
14 rawset(t, k, rawget(m, k))