getClientTimezone() — supabase Function Reference
Architecture documentation for the getClientTimezone() function in PITR.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ea18b1f5_07ef_c14f_2472_6b5cabd71914["getClientTimezone()"] 326db367_c0df_96cd_0aa5_37f6692822cb["PITRForm()"] 326db367_c0df_96cd_0aa5_37f6692822cb -->|calls| ea18b1f5_07ef_c14f_2472_6b5cabd71914 7781789f_e923_1e81_d678_c9b2482bb620["PITRSelection()"] 7781789f_e923_1e81_d678_c9b2482bb620 -->|calls| ea18b1f5_07ef_c14f_2472_6b5cabd71914 style ea18b1f5_07ef_c14f_2472_6b5cabd71914 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Database/Backups/PITR/PITR.utils.ts lines 19–27
export const getClientTimezone = () => {
const defaultTz = dayjs.tz.guess()
const utcTz = ALL_TIMEZONES.find((option) => option.value === 'UTC')
const timezone = ALL_TIMEZONES.find((option) => {
if (option.utc.includes(defaultTz)) return option
else return undefined
})
return timezone ?? (utcTz || ALL_TIMEZONES[0])
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getClientTimezone() do?
getClientTimezone() is a function in the supabase codebase.
What calls getClientTimezone()?
getClientTimezone() is called by 2 function(s): PITRForm, PITRSelection.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free