Closed jakeprice-me closed 2 years ago
Hm ... not sure if this covers the examples given above, but ...
Due to the first one, I believe you will in any case need to filter the events on the client side ... and if you need to do any filtering on the client side, then probably it doesn't matter much if the date search returns any extra events. It's worse if too few events are passed ... i.e. if it's a timezone issue.
Thanks for the quick reply @tobixen that makes perfect sense and would explain the behavior I'm seeing.
Will do some filtering on my side.
Hello, I'm working on a script to notify me one hour before an event is due to occur, via Telegram.
However, I'm having some issues using
date_search
. It fetches events within the next hour (and no further), but it also seems to be returning events on the specified day that have already occurred (including all day events which in Fastmail at least "start" at 00:00).Here's the example's I'm working with today (screenshot from my Fastmail calendar).
Here's the code I'm using to search for events.
This is what it's returning at 20:47 tonight. You can see the two events in the past.
Any ideas what might be going on?