All day events not shown first when using $ci(title, 0, a0d)$

I am running into an issue that I suspect is related to timezones.

At the start of the day, when I use $ci(title, 0)$ the first events are always my current all day events, as you would expect, since they occur first.

When I use $ci(title, 0, a0d)$ the all day events will occur after all my non all day events that start before midday 12pm (I assume because I am GMT +12).