Update timetable function to add input validation and improve error handling
All checks were successful
/ print-content (push) Successful in 13s

This commit is contained in:
암냥 2026-04-04 00:06:19 +09:00
commit 601ebca93e
No known key found for this signature in database
2 changed files with 29 additions and 6 deletions

View file

@ -9,7 +9,8 @@ async function main() {
const YYYY = now.getFullYear();
const MM = String(now.getMonth() + 1).padStart(2, '0');
const DD = String(now.getDate()).padStart(2, '0');
const YYMMDD = `${YYYY}${MM}${DD}`;
// const YYMMDD = `${YYYY}${MM}${DD}`;
const YYMMDD = `20260403`;
// getDay(): 일(0) ~ 토(6)
// comcigan.ts 라이브러리 기준에 맞춰 weekday 설정 필요