FREDERICTON - Air Canada is apologizing to passengers who found themselves rerouted late at night to Fredericton with nothing to eat -- that is, until a WestJet pilot stepped in to buy them pizza.

The passengers were on a flight from Toronto to St. John's, N.L. on Feb. 8 when bad weather forced the plane to be rerouted to New Brunswick.

Passenger John Samms took to Twitter to say that an Air Canada employee announced it was impossible to get food at that hour, but then a WestJet pilot spoke up to say his airline did things differently, and ordered four or five large pizzas for them.

The pilot could not be reached for comment, and WestJet declined to speak.

In a statement, Air Canada said it was sorry their customers experienced a weather-related diversion to an airport that was not expecting them on such short notice.

It says food service was unfortunately closed, but Air Canada was grateful for the generous spirit of the individual who stepped-in to help out.

Samms posted pictures on social media, saying he was never so happy to see pizza