Fix the dreaded Midnight Bug, which made schedules magically disappear close to midnight because there was no next tick that same day (even if there were many many ticks left the next day)