Daily Changelog – September 17, 2025
Fixes
- Fixed timezone display issues in PTO request dates where date-only values (2025-10-20) were being incorrectly interpreted as UTC and shifted by timezone conversion, causing 10/20 to display as 10/19
- Updated time-off-requests page to use formatDateOnlyLocal instead of formatLocal for proper date-only formatting
- Fixed DateTime.fromISO calls in employee portal, main dashboard, and leave of absence components to specify America/Chicago timezone for date-only strings
- Resolved date shifting in FileMaker PTO import display where imported 10/20 and 11/20 requests appeared as 10/19 and 11/19 in frontend
- Fixed PTO import functions to use simple date component parsing instead of timezone-aware parseAppDate for date-only values
- Removed unnecessary timezone conversion from both FileMaker PTO import and regular PTO import routes
- Standardized date-only parsing across all import functions to match time clock import approach (direct MM/DD/YYYY to YYYY-MM-DD conversion)
- Resolved massive TypeScript build regression where 208+ errors were caused by systematic removal of date-fns imports while leaving function calls intact
- Restored missing date-fns imports to 23+ files including format, parseISO, addDays, startOfWeek functions
- Fixed duplicate DateTime import causing webpack compilation failure in payroll pay-periods page
- Fixed UTCISOString type casting errors across 15+ components by adding proper type assertions
- Fixed Luxon DateTime method calls (.toISOString() → .toISO(), .getTime() → .toJSDate().getTime())
- Resolved import conflicts in time.ts library where date-fns functions conflicted with existing implementations
- Fixed missing fs import in wordpress-simple.ts and various API route type errors
- Installed missing @types/luxon and date-fns packages to restore proper TypeScript definitions
- Fixed function declaration order issues where useEffect hooks referenced functions before they were declared
