mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			500 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			500 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
-- Licensed to the public under the Apache License 2.0.
 | 
						|
 | 
						|
local setmetatable, require, rawget, rawset = setmetatable, require, rawget, rawset
 | 
						|
 | 
						|
module "luci.sys.zoneinfo"
 | 
						|
 | 
						|
setmetatable(_M, {
 | 
						|
	__index = function(t, k)
 | 
						|
		if k == "TZ" and not rawget(t, k) then
 | 
						|
			local m = require "luci.sys.zoneinfo.tzdata"
 | 
						|
			rawset(t, k, rawget(m, k))
 | 
						|
		elseif k == "OFFSET" and not rawget(t, k) then
 | 
						|
			local m = require "luci.sys.zoneinfo.tzoffset"
 | 
						|
			rawset(t, k, rawget(m, k))
 | 
						|
		end
 | 
						|
 | 
						|
		return rawget(t, k)
 | 
						|
	end
 | 
						|
})
 |