Anonymous user
Module:Protection banner: Difference between revisions
use lang:formatDate instead of os.date as it is easier to localise
(format date output in the Blurb class) |
(use lang:formatDate instead of os.date as it is easier to localise) |
||
Line 187:
function Blurb.formatDate(num)
-- Formats a Unix timestamp into dd M, YYYY format.
lang = lang or mw.language.getContentLanguage()
local success, date = pcall(
lang.formatDate,
lang,
'j F Y',
return date▼
'@' .. tostring(num)
)
if success then
end
end
|