sourcesimian / uICAL

Lightweight C++ and Python library for reading ICAL calendar format
MIT License
16 stars 9 forks source link

datetime doesnt handle Date Only Timestamps. #7

Open DrJohannessen opened 3 months ago

DrJohannessen commented 3 months ago

the iCalendar (ICS) standard does support date strings that are only dates and are 8 characters long. This format is typically used for all-day events, where only the date is specified without any specific time or time zone information. The standard format for such date strings in the iCalendar specification is YYYYMMDD.

The Library just throws an error right now if you have a 8 character time. Like in this ICS Entry: `BEGIN:VEVENT

UID:b4jf0mrknTgUZ9Itom02NwFicVt0

DTSTAMP:20240402T201802Z

SUMMARY:Test ganztägig

DTSTART;VALUE=DATE:20240405

DTEND;VALUE=DATE:20240406

SEQUENCE:0

STATUS:CONFIRMED

END:VEVENT`

sourcesimian commented 1 month ago

@DrJohannessen a pul request with new and passing tests is welcome