A Spirit Airlines flight on its way to Dallas from New York diverted passengers to Tulsa Thursday evening due to inclement weather.

But instead of delaying the flight until the weather cleared up, Tulsa International Airport said the crew had flown their maximum amount of hours for the day. Spirit arranged transportation for all of their Dallas passengers via bus, according to ABC affiliate, KTUL.

Officials say 185 passengers were stranded for hours. Seventeen hours after they took off they made it back to Dallas just after 5 a.m. Friday morning.

As expected, travelers took to Twitter looking for a solution from Spirit prior to the arrangements and express their frustration:

WFAA was at DFW International as the passengers arrived. Hear from some of them after their journey:

Friday afternoon Spirit Airlines released this statement:

Spirit Airlines flight 917 with scheduled service from New York LaGuardia to Dallas was forced to divert to Tulsa due to dangerous weather in Dallas. As a result of long ground delays in Dallas, our flight Crew was legally required to be put on rest and therefore no longer allowed to continue to Dallas.Guests were bussed via motor coaches to Dallas and received a full refund for the flight. They also received a total of $100 in future travel credit. We apologize for the inconvenience and frustration these diversions can cause, but the safety of our Guests and Crew is paramount.