Closed vespino closed 4 years ago
Both filterDaysAfter
and filterDaysBefore
are expected to be numbers, not Boolean.
php
implicitly typecasts Boolean true
to the integer 1
; so in the case above you're telling the ics parser to ignore all events outside +/- 1 day from "today" when loading and parsing the ical file.
Wow, I totally overlooked that in the example, although I'm certain it was a boolean before because this was working before. Did it change along the way maybe?
Looking into it, no: they've been integers since they were added in Nov 2018 (#190).
Ah well, so long as it's now working as expected...
I have been using the script for some time now, but recently I noticed some items not being read by the script. Today again. The following only seems to return appointments that occur tomorrow:
What could I be overlooking? I'm using version 2.1.16 of this script and different versions of PHP (both 5 and 7) since I'm using it on multiple servers.
Edit 2020/1/15: I did some more testing and the script only seems to return "today" and "tomorrow".