mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
feat: expose block target duration in header
This commit is contained in:
committed by
Carlos Valente
parent
32edf3404c
commit
9ec47eda6e
@@ -105,8 +105,7 @@ export const formatTime = (
|
||||
|
||||
/**
|
||||
* Handles case for formatting a duration time
|
||||
* @param duration
|
||||
* @returns
|
||||
* eg: "1h 0m 0s" or "0h 30m"
|
||||
*/
|
||||
export function formatDuration(duration: number, hideSeconds = true): string {
|
||||
// durations should never be negative, we handle it here to flag if there is an issue in future
|
||||
|
||||
Reference in New Issue
Block a user