UA 3901 then UA 1585 at San Francisco
Hong Kong → San Francisco → Puerto Vallarta
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
10:29UA 1585 to Puerto Vallarta leaves the gatealso AC 5495
17 h 55 apart on the timetable, overnight
UA 1585 leaves 17 h 55 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.