MCPcopy Index your code
hub / github.com/simstudioai/sim / getBrowserTimezone

Function getBrowserTimezone

apps/sim/lib/core/utils/timezone.ts:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24/** The IANA timezone the current runtime resolves to (e.g. `America/New_York`). */
25export function getBrowserTimezone(): string {
26 return Intl.DateTimeFormat().resolvedOptions().timeZone
27}
28
29/**
30 * Every IANA timezone identifier the runtime knows, for populating a picker;

Callers 2

GeneralFunction · 0.90
useTimezoneFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected