1
0

fix: New date format
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

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

View File

@@ -22,7 +22,7 @@ export default async function parseV1V2(downloadedFilePath) {
await workbook.xlsx.readFile(downloadedFilePath); await workbook.xlsx.readFile(downloadedFilePath);
const teacherMap = await parseTeachers(); const teacherMap = await parseTeachers();
const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.\s*(\d{1,2})\.\s*(20\d{2})/i; const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.\s*(\d{1,2})\.\s*(\d{2}|\d{4})/i;
// Get today's date for comparison // Get today's date for comparison
function getCurrentDateObject() { function getCurrentDateObject() {

View File

@@ -55,7 +55,7 @@ export default async function parseV3(downloadedFilePath) {
// //
function getUpcomingSheets(workbook) { function getUpcomingSheets(workbook) {
const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.\s*(\d{1,2})\.\s*(20\d{2})/i; const dateRegex = /^(pondělí|úterý|středa|čtvrtek|pátek|po|út|ut|st|čt|ct|pa|pá)\s+(\d{1,2})\.\s*(\d{1,2})\.\s*(\d{2}|\d{4})/i;
const today = new Date(); const today = new Date();
const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate()); const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate());