mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
fix: format clock from preset (#2066)
* fix: format clock from preset * fix: add to all views * chore: format * refactor: return flat value from common.options.ts
This commit is contained in:
committed by
GitHub
parent
1a08b39b8b
commit
a5e733246d
@@ -101,6 +101,7 @@ export function getPropertyValue(
|
||||
type FormattingOptions = {
|
||||
removeSeconds: boolean;
|
||||
removeLeadingZero: boolean;
|
||||
clockFormat?: MaybeString;
|
||||
};
|
||||
|
||||
export function getFormattedTimer(
|
||||
@@ -114,7 +115,7 @@ export function getFormattedTimer(
|
||||
}
|
||||
|
||||
if (timerType === TimerType.Clock) {
|
||||
return formatTime(timer);
|
||||
return formatTime(timer, { override: options?.clockFormat });
|
||||
}
|
||||
|
||||
let timeToParse = timer;
|
||||
|
||||
Reference in New Issue
Block a user