I'm trying to write some code that gets a list of all the events on the calendar for x days from now. Going over the API listing I found CalendarGetNumDayEvents and CalendarGetDayEvent, which both take a monthOffset parameter that seems to be relative to the current displaying calendar month. So I wrote some code that calculates the offset required to end up at the actual current month relative from the displayed one, and ran into a problem.
For some reason displaying the month before shows all events just fine, the month itself does as well but then if I go to the next month it loses one of the events, the weeks bonus event. And if I move the calendar another month ahead there's a total of zero events left using a monthOffset of -2. For any other months of the year it seems to also show no events at all.
Is there any other way to directly get the events of the current month regardless of what month the ingame calendar is on?
Screenshots to illustrate the problem: