feat: refactor date formatting and timezone utilities for improved consistency and functionality
Some checks failed
Frontend CI / lint (push) Failing after 19s
Frontend CI / build (push) Has been skipped

This commit is contained in:
JSC
2025-08-15 23:43:17 +02:00
parent cd654b8777
commit 9cfa1f6a28
9 changed files with 148 additions and 45 deletions

View File

@@ -1,14 +0,0 @@
// Get supported timezones, fallback to basic list if Intl.supportedValuesOf is not available
export const getSupportedTimezones = (): string[] => {
try {
if (typeof Intl !== 'undefined' && 'supportedValuesOf' in Intl) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return (Intl as any).supportedValuesOf('timeZone')
}
} catch {
console.warn('Intl.supportedValuesOf not available, using fallback timezones')
}
// Fallback timezone list
return ['America/New_York', 'Europe/Paris']
}