MCPcopy
hub / github.com/simstudioai/sim / useTimezone

Function useTimezone

apps/sim/hooks/queries/general-settings.ts:142–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 * captured so scheduling honors the account preference rather than the device.
141 */
142export function useTimezone(): string {
143 const { data } = useGeneralSettings()
144 return data?.timezone ?? getBrowserTimezone()
145}
146
147/**
148 * Update general settings mutation

Callers 2

ScheduledTasksFunction · 0.90
TaskModalContentFunction · 0.90

Calls 2

getBrowserTimezoneFunction · 0.90
useGeneralSettingsFunction · 0.85

Tested by

no test coverage detected