MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTimeZone

Function getTimeZone

src/utils/intl.ts:72–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70let cachedTimeZone: string | null = null
71
72export function getTimeZone(): string {
73 if (!cachedTimeZone) {
74 cachedTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
75 }
76 return cachedTimeZone
77}
78
79// System locale language subtag (e.g. 'en', 'ja') is constant for the process
80// lifetime. null = not yet computed; undefined = computed but unavailable (so

Callers 1

formatResetTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected