變更

增加 156 位元組 、 2019年8月21日 (三) 11:39
fix & 正規化分類日期
行 300: 行 300:  
date = lang:formatDate('Y年n月j日', args.time)
 
date = lang:formatDate('Y年n月j日', args.time)
 
end
 
end
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月j日', date) -- 正規化日期
+
if date then
if ok then
+
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月j日', date) -- 正規化日期
date = tempdate
+
if ok then
 +
date = tempdate
 +
end
 
end
 
end
 
if date then
 
if date then
行 405: 行 407:  
if args.date and args.date ~= '' then
 
if args.date and args.date ~= '' then
 
date = args.date
 
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
 
elseif args.time and args.time ~= '' then
 
date = lang:formatDate('Y年n月', args.time)
 
date = lang:formatDate('Y年n月', args.time)
匿名使用者