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
+9
View File
@@ -0,0 +1,9 @@
import { toGregorianDate, toHebrewDate } from "../utils/dateConversion.js";
import { monthIndexToHebrewDate, monthsSinceEpoch } from "../utils/serial.js";
export function setMonth(date, month) {
const hebrew = toHebrewDate(date);
const baseIndex = monthsSinceEpoch({ year: hebrew.year, monthIndex: 0 });
const targetIndex = baseIndex + month;
const target = monthIndexToHebrewDate(targetIndex, hebrew.day);
return toGregorianDate(target);
}