UA 2858 then UA 5863 at LAX
Newark → Los Angeles → San Luis Obispo
Timetable, Los Angeles time
20:18UA 2858 from Newark at the gate
18:55UA 5863 to San Luis Obispo leaves the gate
22 h 37 apart on the timetable, overnight
UA 5863 leaves 22 h 37 after UA 2858 arrives on the timetable: more than half a day, so not a connection we count.