Passengers wait in a darkened Los Angeles International Airport on Wednesday night.
CNN  — 

Parts of Los Angeles International Airport were left without light and power for about three and a half hours Wednesday night, causing the cancellation, delay and diversion of flights.

The power went out at around 6:10 p.m. local time, a spokesperson for the airport said. It was restored just after 10 p.m., the airport announced, saying that it was working to resume operations.

Terminals 1, 7 and 8 experienced an extended power disruption and as a result “several flights had been delayed, diverted or canceled,” the airport said.

While there was emergency lighting during the outage, it was only enough for passengers to find their way around, and much of the airport was left dark, CNN affiliate KTLA reported. The outage also disrupted the use of jet bridges.

David Andres Espinoza was a passenger on a flight that flew in during the outage. He told CNN that he was stuck on the plane for about half an hour so portable stairs could be brought in.

A spokeswoman for Southwest Airlines told CNN “all incoming flights have been diverted and all remaining flights for the evening have been canceled.”

That amounts to about 40 flights, spokeswoman Michelle Agnew said. The airline plans to resume a normal schedule Thursday morning.

United Airlines said it had to divert nine flights and cancel two others. The airline said 19 flights also were delayed. United said it is working to return to normal and asked customers to check online for their flight status.

Gianluca Mezzofiore contributed to this report.