gitea
gitea copied to clipboard
Fix SecToTime edge-cases (#20610)
- Backport of #20610
- Currently there are edge-cases where the code fails to produce the correct results, this is mainly due to the misusage of the modulo operator. Well this could be fixed, it's better to use a more performant way and simply distract the previous number's cost to calculate the variables.
- Resolves #20589