atomic_calendar
atomic_calendar copied to clipboard
My events are a day off
Not sure why but my events are shown a day too early:


Please let me know if i need to configure something, right now i got no advanced config.
Have you checked if the date in the calendar entity itself is correct?
Ah maybe it is because of this: event: start_time: 2019-06-22 00:00:00 end_time: 2019-06-23 00:00:00
So past events are on 2 days, so it will take the last? Now it shows a future event, and it is correct ( the 22nd).
They are all day events, could it be that those are not correct displayed? (atleast the past events?) Can I hide the past events?
No advanced config is needed, only the correct timezone setting in HA. I can't reproduce it. Do you have your events marked as "full day events" in Google, or you just manually set the time to 00.00 - 00.00 next day? Google calendar full day events don't use hours at all, only days, so I'm translating it using moment to start and end of the day - start_time and end_time (00:00 - 23:59.999) so it should be working correctly. In my tests at least. But even if I add any event 0:00 - 0:00 it shows correctly as one day event, in future or today, and it's not showing at all if it was yesterday or before. If anything ends at 0.00 today it will not be visible. So, are you using "full day events"?
They are full day events indeed. I'll keep an eye on them and see if it's still happening.