890
pakeitimų
SNėra keitimo santraukos |
SNėra keitimo santraukos |
||
| 238 eilutė: | 238 eilutė: | ||
if hc(a.rev) then | if hc(a.rev) then | ||
date_link = date_link .. ' | date_link = date_link .. ' ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y-m-d]]', a.rev) | ||
end | end | ||
| 319 eilutė: | 319 eilutė: | ||
local day, month, year = '', '', '' | local day, month, year = '', '', '' | ||
if hc(a.date) then | if hc(a.date) then | ||
day = lang:formatDate('d', a.date) -- Day with leading zeros | |||
month = lang:formatDate('m', a.date) -- Month with leading zeros | |||
year = lang:formatDate('Y', a.date) -- Four-digit year | |||
date_link = string.format('[[%s-%s-%s]]', year, month, day) -- Format as yyyy-MM-dd | |||
else | else | ||
date_link = '(nenurodyta)' -- If no date is provided | |||
end | end | ||
if hc(a.rev) then | if hc(a.rev) then | ||
date_link = date_link .. ', ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y | date_link = date_link .. ', ir paskutinį kartą atnaujintas ' .. lang:formatDate('[[Y-m-d]]', a.rev) | ||
end | end | ||