AV 6985 then UA 5722 at San Francisco
Vancouver → San Francisco → Bakersfield
Timetable, San Francisco time
16:06AV 6985 from Vancouver at the gate
14:10UA 5722 to Bakersfield leaves the gatealso NZ 9159
22 h 04 apart on the timetable, overnight
UA 5722 leaves 22 h 04 after AV 6985 arrives on the timetable: more than half a day, so not a connection we count.