deploy: v0.12 fix 存档key名

This commit is contained in:
2026-06-24 03:09:02 +00:00
parent 7a08d49fe3
commit e0a5281119
58743 changed files with 7297269 additions and 39505 deletions
+12
View File
@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setMonth = setMonth;
const dateConversion_js_1 = require("../utils/dateConversion.js");
const serial_js_1 = require("../utils/serial.js");
function setMonth(date, month) {
const hebrew = (0, dateConversion_js_1.toHebrewDate)(date);
const baseIndex = (0, serial_js_1.monthsSinceEpoch)({ year: hebrew.year, monthIndex: 0 });
const targetIndex = baseIndex + month;
const target = (0, serial_js_1.monthIndexToHebrewDate)(targetIndex, hebrew.day);
return (0, dateConversion_js_1.toGregorianDate)(target);
}