feat: dynamic time format rendering in workflows based on user settings (#10229)

This commit is contained in:
Monto authored and GitHub committed 2023-07-19 10:30:37 -04:00
1 parent 1ad4f7247e
commit 26e458be6d
25 files changed
+205 -56

No files matched your search

+4
View File
@@ -24,6 +24,10 @@ export const getIs24hClockFromLocalStorage = () => {
return is24hFromLocalstorage === "true";
};
export const getTimeFormatStringFromUserTimeFormat = (timeFormat: number | null | undefined) => {
return timeFormat === 24 ? TimeFormat.TWENTY_FOUR_HOUR : TimeFormat.TWELVE_HOUR;
};
/**
* Retrieves the browsers time format preference, checking local storage first
* for a user set preference. If no preference is found, it will use the browser