Module:Message box: Difference between revisions

Content deleted Content added
嘗試正規化日期
fix & 正規化分類日期
Line 300:
date = lang:formatDate('Y年n月j日', args.time)
end
if okdate then
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月j日', date) -- 正規化日期
if ok then
dateif =ok tempdatethen
date = tempdate
end
end
if date then
Line 405 ⟶ 407:
if args.date and args.date ~= '' then
date = args.date
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月', date) -- 正規化日期
if ok then
date = tempdate
end
elseif args.time and args.time ~= '' then
date = lang:formatDate('Y年n月', args.time)