UA 3901 then UA 5763 at San Francisco
Hong Kong → San Francisco → Ontario
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
16:19UA 5763 to Ontario leaves the gate
23 h 45 apart on the timetable, overnight
UA 5763 leaves 23 h 45 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.