Module:Time/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 349:
data = mw.loadData (data); -- load the data module
cfg = data.cfg; -- get the configuration table
local formats = data.formats;
local tz_aliases = {}
local aliases_table = data.tz_aliases; -- get the aliases table
Line 468 ⟶ 469:
end
if not cfg.formatformats[DF] then
return error_msg ('bad_format', DF);
end
time_string = mw.language.getContentLanguage():formatDate (cfg.formatformats[DF], '@'..timestamp);
 
if not is_set (tz.article) then -- if some but not all not all parts then emit error message