Rocky_Mountain_Vending/.pnpm-store/v10/files/72/cbad3ff6a80026ff6cb96152898f874db655bf972d2c7b19d713b5177c5f0121d0417f834d793c43c8dcee7071e8618ebac5976d4ab790ef6a41e6a2811e57
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

12 lines
No EOL
498 B
Text

import { TZDate } from "../date/index.js";
/**
* The function creates accepts a time zone and returns a function that creates
* a new `TZDate` instance in the time zone from the provided value. Use it to
* provide the context for the date-fns functions, via the `in` option.
*
* @param timeZone - Time zone name (IANA or UTC offset)
*
* @returns Function that creates a new `TZDate` instance in the time zone
*/
export const tz = timeZone => value => TZDate.tz(timeZone, +new Date(value));