1
0

fix: Maybe fix
All checks were successful
Remote Deploy / deploy (push) Successful in 6s

This commit is contained in:
2026-02-08 19:25:27 +01:00
parent 3e1b912cf8
commit 768913aacc
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ export default async function parseV1V2(downloadedFilePath) {
const day = parseInt(match[2], 10); const day = parseInt(match[2], 10);
const month = parseInt(match[3], 10) - 1; const month = parseInt(match[3], 10) - 1;
const year = parseInt(match[4], 10); const year = match[4].length === 2 ? Number('20' + match[4]) : Number(match[4]);
const sheetDate = new Date(year, month, day); const sheetDate = new Date(year, month, day);
if (sheetDate < today) continue; if (sheetDate < today) continue;

View File

@@ -68,7 +68,7 @@ function getUpcomingSheets(workbook) {
const day = Number(match[2]); const day = Number(match[2]);
const month = Number(match[3]) - 1; const month = Number(match[3]) - 1;
const year = Number(match[4]); const year = match[4].length === 2 ? Number('20' + match[4]) : Number(match[4]);
const sheetDate = new Date(year, month, day); const sheetDate = new Date(year, month, day);
if (sheetDate < todayMidnight) continue; if (sheetDate < todayMidnight) continue;