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

Function toLocalTimeZone

packages/@internationalized/date/src/conversion.ts:387–389  ·  view source on GitHub ↗
(date: ZonedDateTime)

Source from the content-addressed store, hash-verified

385
386/** Converts the given `ZonedDateTime` into the user's local time zone. */
387export function toLocalTimeZone(date: ZonedDateTime): ZonedDateTime {
388 return toTimeZone(date, getLocalTimeZone());
389}

Callers 1

useHiddenDateInputFunction · 0.90

Calls 2

getLocalTimeZoneFunction · 0.90
toTimeZoneFunction · 0.85

Tested by

no test coverage detected