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>
15 lines
No EOL
550 B
Text
15 lines
No EOL
550 B
Text
"use strict";
|
|
|
|
exports.tz = void 0;
|
|
var _index = require("../date/index.cjs");
|
|
/**
|
|
* 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
|
|
*/
|
|
const tz = timeZone => value => _index.TZDate.tz(timeZone, +new Date(value));
|
|
exports.tz = tz; |