Closed Tamh closed 1 year ago
endTime := time.Date(year, time.Month(month+1), -1, 23, 59, 59, 999999999, time.Local)
This line actually resolves to 2021-04-29 23:59:59.999999999 +0000 UTC
, which would completely exclude this event, which starts on April, 30th. On this particular instance, I understand gocal
's logic is sound.
There may be some other issue with the framing, but I cannot see one here. Do you agree?
Closing for inactivity.
For this purpose, imagine the following event, as defined in the ICS file.
(an event that starts on April 30th, 11PM UTC and ends on May 1st, 5PM UTC
And the following code in Go:
(where year=2021, month=4)
gocal doesn't retrieve this particular event for the calendar, though it should since it started on April 30th. I'm in UTC-5 (making the events start 5 hours early for me), so I don't think it has something to do with my locale.
If I change the code to:
it retrieves it correctly.