atomic_calendar icon indicating copy to clipboard operation
atomic_calendar copied to clipboard

My events are a day off

Open NicoBijl opened this issue 5 years ago • 4 comments

Not sure why but my events are shown a day too early:

Screenshot 2019-06-19 at 22 27 53 Screenshot 2019-06-19 at 22 27 31

Please let me know if i need to configure something, right now i got no advanced config.

NicoBijl avatar Jun 19 '19 20:06 NicoBijl

Have you checked if the date in the calendar entity itself is correct?

leloberg avatar Jun 19 '19 20:06 leloberg

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?

NicoBijl avatar Jun 20 '19 07:06 NicoBijl

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"?

atomic7777 avatar Jun 24 '19 06:06 atomic7777

They are full day events indeed. I'll keep an eye on them and see if it's still happening.

NicoBijl avatar Jul 04 '19 09:07 NicoBijl