Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 369:
args[1] = args[1] or 'utc' -- default to utc
tzargs[1] = data['tz_aliases'][args[1]];
tzargs[1] = data['dst_tz'][args[1]];
tz = data['.tz_data'][args[1]];
if not tz then
Line 416 ⟶ 417:
local aliases_table = data.tz_aliases; -- get the other aliases table
local tz_data = data.tz_data; -- get the tz data table
 
for k,v in pairs(dst_table) do -- add dst offsets to tz_aliases
tz_aliases[k] = v