Irgoriere day wenn 00 in myfigurecollection.lua
This commit is contained in:
parent
62165937ec
commit
5576ec3af8
@ -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)
|
||||
|
Reference in New Issue
Block a user