strukturart / greg

Calendar for KaiOS
MIT License
26 stars 6 forks source link

Events appear on wrong day #43

Closed rmosolgo closed 6 months ago

rmosolgo commented 6 months ago

Hi! As mentioned before, I'm new to KaiOS and to greg, and I've really appreciated it over the native calendar app. Thanks!

I noticed that events sometimes appear on the wrong day. Here's an example:

Photo on 3-27-24 at 4 23 PM

Above, it shows "AidData Summer 2011 Lunch" coming up tomorrow, March 28. In fact, there were events like that in the long past:

image

But, not tomorrow:

image

Do you have a guess why this might be happening? I'd be happy to try fixing it but I'd probably have better luck if you have any clues to share ๐Ÿ˜…

rmosolgo commented 6 months ago

Update: maybe it has to do with how recurring events are rendered. I tried navigating back to 2011 to see if it appeared in the correct place, and while I was on my way there, I noticed that this event is also displayed on Thursdays in 2013:

Photo on 3-27-24 at 4 32 PM

For reference, here's the configuration of this event in Google:

image

Maybe the "5 times" part isn't applying?

strukturart commented 6 months ago

This is where the โ€œcellsโ€ are styled: https://github.com/strukturart/greg/blob/aaca714763b333ba392572a42f979adca01c7e25/application/app.js#L1200

and here the events are parsed: https://github.com/strukturart/greg/blob/aaca714763b333ba392572a42f979adca01c7e25/application/sw.js#L59

strukturart commented 6 months ago

Apparently the number of repetitions is ignored, could you please test whether the problem is solved by specifying an end date?