The format displayed when %m and %s are not implemented. Here is a working implementation :
if string.match(text, "%%m") then
local minutes = math.floor(ms / 60000) % 60
minutes = string.format("%d", minutes)
text = string.gsub(text, "%%m", minutes)
end
if string.match(text, "%%s") then
local seconds = math.floor(ms / 1000) % 60
seconds = string.format("%d", seconds)
text = string.gsub(text, "%%s", seconds)
end
The format displayed when %m and %s are not implemented. Here is a working implementation :