Rocky_Mountain_Vending/.pnpm-store/v10/files/50/401c3fbf107e7f3ad24f6f70703e625fc1fb3183fe5dded4a12bfc02136453a958e79454cab54b3100b03eac73bdeb40416ed902c6ea13aab2d8ef8045d6af
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

15 lines
345 B
Text

import { toGregorian } from "../_lib/jalali.js";
/**
*
* @param args
* @returns {Date}
*/
export function newDate(...args) {
if (args.length > 1) {
const [year, month, day = 1, ...rest] = args;
const g = toGregorian(year, month + 1, day);
return new Date(...[g.gy, g.gm - 1, g.gd, ...rest]);
}
return new Date(...args);
}