Custom UNITS view adding events beyond 23:59

Hi, I’m trying to create a custom UNITS view (12 hour window) with the scheduler 4.1 code and I have defined my new start and end hours as below…

scheduler.config.first_hour = 13:00;
scheduler.config.last_hour = 01:00;

The view renders and everything appears to work fine until you try and add an event beyond 23:59 as the scheduler thinks it is past the day limit. (Which it is, but I need to be able to do this without using the NEXT button to go to the next day).

I have changed the ‘scheduler._max_date’ value to cover a 48 hour time span so that the ‘in_visible_range’ becomes true and the event should display, but it doesn’t.

Any ideas? Am I being a complete spanner and missing something in config?