QF 3657 then UA 8178 at San Francisco
New York JFK → San Francisco → Los Angeles
Timetable, San Francisco time
23:59QF 3657 from New York JFK at the gate
22:50UA 8178 to Los Angeles leaves the gate
22 h 51 apart on the timetable, overnight
UA 8178 leaves 22 h 51 after QF 3657 arrives on the timetable: more than half a day, so not a connection we count.