Unfortunately the formspec seems not to be properly updated when
unchecking a checkbox, even if fields are sent and thus the formspec
action should be triggered. This causes unselecting the currently
selected timer type to be unselected when uinselecting it – instead of
updating the formspec and show the selected option again.
This is just a “visual glitch” and does not affect the timer
functionality. When re-opening the timer window the type is selected
correctly again.
addresses https://gitlab.com/4w/mtimer/-/issues/11
Convert ingame time to millihours and calculate the timestamp from this.
It results in a default timestampo that is parsed by default date and
time functions.
Replacement variables:
{24h} = 24 hours time
{12h} = 12 hours time
{min} = minutes
{its} = ingame timestamp
For some reason I was not able to get the am/pm indicator (`%p`) so 12
hours format is only the time and no optional indicator.