Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 361:
]]
 
local function dst (frame) -- call from #invoke
local args = getArgs (frame);
local data = 'Module:Time/data'..set_sandbox(frame) -- make a data module name; sandbox or live
Line 369:
args[1] = args[1] or 'utc' -- default to utc
args[1] =if data['tz_aliases'][args[1]]; then
args[1] = data['dst_tztz_aliases'][args[1]];
elseif data['dst_tz'][args[1]] then
args[1] = data['dst_tz'][args[1]];
end
tz = data['tz_data'][args[1]];