refactor: implement user deletion functionality and enhance settings management

This commit is contained in:
Abhimanyu Saharan
2026-02-10 00:17:06 +05:30
parent d9f560ee0c
commit 55d4c482bc
11 changed files with 843 additions and 41 deletions

View File

@@ -0,0 +1,26 @@
export const fallbackTimezones = [
"America/Los_Angeles",
"America/Denver",
"America/Chicago",
"America/New_York",
"America/Sao_Paulo",
"Europe/London",
"Europe/Berlin",
"Europe/Paris",
"Asia/Dubai",
"Asia/Kolkata",
"Asia/Singapore",
"Asia/Tokyo",
"Australia/Sydney",
];
export function getSupportedTimezones(): string[] {
if (typeof Intl !== "undefined" && "supportedValuesOf" in Intl) {
return (
Intl as typeof Intl & { supportedValuesOf: (key: string) => string[] }
)
.supportedValuesOf("timeZone")
.sort();
}
return fallbackTimezones;
}