Irgoriere day wenn 00 in myfigurecollection.lua

This commit is contained in:
Akamaru 2015-12-12 23:27:30 +01:00
parent 62165937ec
commit 5576ec3af8

View File

@ -3,7 +3,11 @@ do
local makeOurDate = function(dateString)
local pattern = "(%d+)%-(%d+)%-(%d+)"
local year, month, day = dateString:match(pattern)
if day == "00" then
return month..'.'..year
else
return day..'.'..month..'.'..year
end
end
local function get_info(name)