home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.6k stars 30.76k forks source link

Caldav recurring all day events are displayed 1 day to early #126448

Open lakritz opened 1 month ago

lakritz commented 1 month ago

The problem

Entries in Caldav calendar which are recurring all day events (weekly, monthly, yearly...) are displayed 1 day to early.

For example, there is an entry "Have fun" for every monday, the event is displayed in home assistent on sunday. If there is an entry "Have 1 day fun" on wednesday, the event is displayed correctly on wednesday.

Bildschirmfoto 2024-09-22 um 20 58 11

Here is the ics code for the 2 events

Recurring have Fun event: (Displayed incorrectly) BEGIN:VEVENT CREATED:20240922T065822Z DTEND;VALUE=DATE:20240924 DTSTAMP:20240922T065823Z DTSTART;VALUE=DATE:20240923 LAST-MODIFIED:20240922T065822Z RRULE:FREQ=WEEKLY;COUNT=4 SEQUENCE:3 SUMMARY:Have Fun TRANSP:OPAQUE UID:xyz DESCRIPTION: LOCATION: END:VEVENT

Single "Have 1 day fun" event (Displayed correctly): BEGIN:VEVENT CREATED:20240922T204013 LAST-MODIFIED:20240922T204013 DTSTAMP:20240922T204013 UID:xyz SEQUENCE:1 SUMMARY:1 day fun TRANSP:TRANSPARENT DTSTART;VALUE=DATE:20241016 DTEND;VALUE=DATE:20241017 DESCRIPTION: LOCATION: END:VEVENT

This seems to be the same error as in the ticket: https://github.com/home-assistant/core/issues/113454

What version of Home Assistant Core has the issue?

2024-9-2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Caldav

Link to integration documentation on our website

https://www.home-assistant.io/integrations/caldav/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

caldav documentation caldav source

stehlifn commented 1 month ago

+1, same behaviour as described in https://github.com/home-assistant/core/issues/113454

Zwo12 commented 1 week ago

+1, I can confirm this issue, using HA 2024.10.4 I observed the same behavior with CalDAV calendars: If it is an all-day event everything is fine, once it is reoccuring (here: birthdays), the event is doubled (on-time and one day early). Both HA and the CalDAV calendar use the same TZ...