AA 2359 then CK 226 at O'Hare
Buffalo → Chicago → Shanghai
Timetable, Chicago time
09:05AA 2359 from Buffalo at the gate
01:00CK 226 to Shanghai leaves the gate
15 h 55 apart on the timetable, overnight
CK 226 leaves 15 h 55 after AA 2359 arrives on the timetable: more than half a day, so not a connection we count.