The Senate has joined the House of Representatives in passing an aviation bill that would mark the first comprehensive effort in decades to revise safety rules for airline pilots.

Under the law, pilots in training will have to log at least 1,500 hours of flight time before transporting passengers, up from 250 hours currently. The measure also directs the Federal Aviation Administration to update rules on pilot scheduling and rest time to alleviate cockpit fatigue, an effort already under way.

In addition, the measure requires that, before purchasing tickets on the Internet, passengers be informed when a flight will be operated by a commuter carrier operating on behalf of a larger airline.