AA 5786 then UA 225 at Philadelphia
Greenville-Spartanburg → Philadelphia → San Francisco
Timetable, Philadelphia time
17:50AA 5786 from Greenville-Spartanburg at the gate
16:38UA 225 to San Francisco leaves the gate
22 h 48 apart on the timetable, overnight
UA 225 leaves 22 h 48 after AA 5786 arrives on the timetable: more than half a day, so not a connection we count.