account, schduels, timezone profile and many imporant updates
This commit is contained in:
11
frontend/src/utils/timezone.ts
Normal file
11
frontend/src/utils/timezone.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export const getAccountTimezone = (): string => {
|
||||
try {
|
||||
const raw = localStorage.getItem('auth-storage');
|
||||
if (!raw) return 'UTC';
|
||||
const parsed = JSON.parse(raw);
|
||||
const tz = parsed?.state?.user?.account?.account_timezone;
|
||||
return tz || 'UTC';
|
||||
} catch {
|
||||
return 'UTC';
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user