MDK Logo
UI Kitui-coreStores

timezoneStore

Module-level singleton holding the user's currently selected IANA timezone (e.g. `'America/New_York'`). Drives every timestamp renderer in the UI and the `us…

Module-level singleton holding the user's currently selected IANA timezone (e.g. `'America/New_York'`). Drives every timestamp renderer in the UI and the `useTimezoneFormatter` adapter hook.

import { createTimezoneStore } from "@tetherto/mdk-ui-core";

State

NameSignature
timezonestring

Actions

NameSignature
setTimezone(timezone: string) => void