MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getLocalTimeZone

Function getLocalTimeZone

packages/@internationalized/date/src/queries.ts:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139/** Returns the time zone identifier for the current user. */
140export function getLocalTimeZone(): string {
141 if (localTimeZone == null) {
142 localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
143 }
144
145 return localTimeZone!;
146}
147
148/** Sets the time zone identifier for the current user. */
149export function setLocalTimeZone(timeZone: string): void {

Callers 15

convertValueFunction · 0.90
createPlaceholderDateFunction · 0.90
getTimeZoneOffsetFunction · 0.90
toAbsoluteFunction · 0.90
fromDateToLocalFunction · 0.90
toLocalTimeZoneFunction · 0.90
parseAbsoluteToLocalFunction · 0.90
Calendar.test.jsFile · 0.90
DateFieldExampleFunction · 0.90
RangeCalendarExampleFunction · 0.90
PlantDialogFunction · 0.90

Calls 1

resolvedOptionsMethod · 0.45

Tested by

no test coverage detected