Skip to content

icsExport: Add IANA timezone support for calendar events #703

Description

@Kingsman-99

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

  • A timezone parameter (IANA string, e.g. "America/New_York") is accepted by the export function
  • Generated events include DTSTART;TZID=<tz> and a VTIMEZONE block for the given timezone
  • When timezone is omitted the export falls back to UTC (current behaviour)
  • Existing tests continue to pass

Context

  • Target file: src/lib/icsExport.ts
  • Date helpers: src/lib/dateUtils.ts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions