Description
icsExport generates .ics calendar files for payment due dates but writes all times in UTC without a TZID property, causing events to appear at the wrong local time in many calendar apps. Contributors should add a timezone parameter (IANA tz string) and embed the correct DTSTART;TZID=... and VTIMEZONE component in the generated ICS data.
Acceptance Criteria
Context
- Target file:
src/lib/icsExport.ts
- Date helpers:
src/lib/dateUtils.ts
Description
icsExportgenerates.icscalendar files for payment due dates but writes all times in UTC without aTZIDproperty, causing events to appear at the wrong local time in many calendar apps. Contributors should add atimezoneparameter (IANA tz string) and embed the correctDTSTART;TZID=...and VTIMEZONE component in the generated ICS data.Acceptance Criteria
timezoneparameter (IANA string, e.g."America/New_York") is accepted by the export functionDTSTART;TZID=<tz>and a VTIMEZONE block for the given timezonetimezoneis omitted the export falls back to UTC (current behaviour)Context
src/lib/icsExport.tssrc/lib/dateUtils.ts