UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

11 lines (9 loc) • 259 B
import { useEffect } from "react"; //#region src/timezone.ts function useUserTimezone() { useEffect(() => { document.cookie = `user-timezone=${Intl.DateTimeFormat().resolvedOptions().timeZone}; path=/`; }, []); } //#endregion export { useUserTimezone };