feat: dynamic time format rendering in workflows based on user settings (#10229)
This commit is contained in:
1 parent
1ad4f7247e
commit
26e458be6d
25 files changed
+205
-56
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user