Add option to display the full time (HH:mm:ss) in the timer view (#988)

* Add option to display the full time (HH:mm:ss) in the timer view

Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>

---------

Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
Julien Recurt
2024-06-01 13:39:15 +02:00
committed by GitHub
parent 6c3870c15b
commit d8626ff324
3 changed files with 17 additions and 2 deletions
@@ -84,7 +84,9 @@ export function getFormattedTimer(
}
let display = millisToString(timeToParse);
display = removeLeadingZero(display);
if (options.removeLeadingZero) {
display = removeLeadingZero(display);
}
if (options.removeSeconds) {
display = formatDisplayWithMinutes(display, localisedMinutes);