Fixed issue with overnight schedules having wrong times