Rocky_Mountain_Vending/.pnpm-store/v10/files/41/057fb5b70217f352d5353f26eae3384920a71a126793e88b89b8b65129a3f9fe538b5f127b6f5ef1dc4b31d03ba2170d767cf7fc397d3dfbf030c4e2285a42
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

19 lines
490 B
Text

"use strict";
exports.setDate = setDate;
var _index = require("../_lib/jalali.cjs");
/**
*
* @param cleanDate {Date}
* @param args
* @returns {number}
*/
function setDate(cleanDate, ...args) {
const gd = cleanDate.getDate();
const gm = cleanDate.getMonth() + 1;
const gy = cleanDate.getFullYear();
const j = (0, _index.toJalali)(gy, gm, gd);
const [date] = args;
const g = (0, _index.toGregorian)(j.jy, j.jm, date);
return cleanDate.setFullYear(g.gy, g.gm - 1, g.gd);
}