diff --git a/apps/client/src/common/utils/time.ts b/apps/client/src/common/utils/time.ts index 269c07a12..dc0945f7b 100644 --- a/apps/client/src/common/utils/time.ts +++ b/apps/client/src/common/utils/time.ts @@ -51,6 +51,7 @@ export const formatTime = (milliseconds: number | null, options?: FormatOptions, return '...'; } const timeFormat = resolver(); - const { showSeconds = false, format: formatString = 'hh:mm a' } = options || {}; + const fallback = options?.showSeconds ? 'hh:mm:ss a' : 'hh:mm a'; + const { showSeconds = false, format: formatString = fallback } = options || {}; return timeFormat === '12' ? formatFromMillis(milliseconds, formatString) : millisToString(milliseconds, showSeconds); };