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

Function getSupportedTimezones

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

Source from the content-addressed store, hash-verified

31 * falls back to a curated common set on runtimes without `Intl.supportedValuesOf`.
32 */
33export function getSupportedTimezones(): string[] {
34 const zones =
35 typeof Intl.supportedValuesOf === 'function'
36 ? Intl.supportedValuesOf('timeZone')
37 : COMMON_TIMEZONES
38 return zones.includes('UTC') ? zones : ['UTC', ...zones]
39}
40
41/** A timezone choice for a picker: the canonical IANA value plus a display label. */
42export interface TimezoneOption {

Callers 2

timezone.test.tsFile · 0.90
getTimezoneOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected