2 LuCI - Autogenerated Zoneinfo Module
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
12 local setmetatable, require, rawget, rawset = setmetatable, require, rawget, rawset
14 module "luci.sys.zoneinfo"
17 __index = function(t, k)
18 if k == "TZ" and not rawget(t, k) then
19 local m = require "luci.sys.zoneinfo.tzdata"
20 rawset(t, k, rawget(m, k))
21 elseif k == "OFFSET" and not rawget(t, k) then
22 local m = require "luci.sys.zoneinfo.tzoffset"
23 rawset(t, k, rawget(m, k))