Skip to content

test_make_compat.py's test_make_compat method fails when round-tripping an ICS with TZID=Pacific Standard Time #536

@ChrisCarini

Description

@ChrisCarini

Describe the bug
A clear and concise description of what the bug is, and the version of the ics library used.

It appears that an ICS file with something like DTSTART;TZID=Pacific Standard Time:20241018T000000 (noting the Pacific Standard Time tz) will cause this lib to fail the 'round-trip' of converting the ICS file into a Calendar object, and then back to an ICS (str) via IcsCalendarStream.calendar_to_ics(calendar) will change the line to DTSTART;TZID=PST:20241018T000000

To Reproduce

See #535

Image

Expected behavior

I would expect at the very least that the ICS str coming from IcsCalendarStream.calendar_to_ics(calendar) would be re-parsable by this lib.

I understand that Pacific Standard Time is not a 'standard' TZ, and is part of the recent compatibility that was added for Office 365, but "most-ideally", it'd be great if IcsCalendarStream.calendar_to_ics(calendar) could return a value that is near-identical to the original ICS file that was passed in.

Additional context

I found this when trying to do some testing/debugging for home-assistant/core#148315 - likely tangential and not directly related, just but 'linking' for self-posterity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions