Rocky_Mountain_Vending/.pnpm-store/v10/files/d1/33603db8248d3476939d96197887c5e7377998a19d96b70b46e256f6a5930c77c3c5c992731ad378fa5195b83d87d4ae226d2e0412cf168c3219797ee75a5a
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

17 lines
487 B
Text

import { toGregorian, toJalali } from "../_lib/jalali.js";
/**
*
* @param cleanDate {Date}
* @param args
* @returns {number}
*/
export function setFullYear(cleanDate, ...args) {
const gd = cleanDate.getDate();
const gm = cleanDate.getMonth() + 1;
const gy = cleanDate.getFullYear();
const j = toJalali(gy, gm, gd);
const [year, month = j.jm - 1, date = j.jd] = args;
const g = toGregorian(year, month + 1, date);
return cleanDate.setFullYear(g.gy, g.gm - 1, g.gd);
}