Remove remaining references to boa and lucid
[project/luci.git] / libs / sys / luasrc / sys / zoneinfo.lua
1 --[[
2 LuCI - Autogenerated Zoneinfo Module
3
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
7
8         http://www.apache.org/licenses/LICENSE-2.0
9
10 ]]--
11
12 local setmetatable, require, rawget, rawset = setmetatable, require, rawget, rawset
13
14 module "luci.sys.zoneinfo"
15
16 setmetatable(_M, {
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))
24                 end
25
26                 return rawget(t, k)
27         end
28 })