Creating correct time to set in scheduler.