We've had quite a bit of fog in SAN this week and the late night flights are usually the ones affected in these situations. IME they'll hold inbound flights if they haven't left yet to see if the fog will lift before cancelling. Flights en-route are usually diverted to LAX and, depending on the number of distressed passengers, a late night bus bridge to SAN.