Skip to content

Use Current Timezone

Helper for getting current timezone, getting client original timezone

Client Original Timezone

ts
const { clientOriginalTimezone, timezone, setTimezone } = useCurrentTimezone();

Current Timezone

ts
const { timezone } = useCurrentTimezone();

Set Timezone

ts
const { setTimezone } = useCurrentTimezone();