The state Senate approved a bill Wednesday that would allow bars to stay open until 4 a.m., bringing California cities one step closer to a later last call.

The bill, which state Sen. Scott Wiener, D-San Francisco, introduced in February, would allow communities to decide whether bars can serve alcohol past the current 2 a.m. cutoff. It will now move to the Assembly for a review and vote — one of the last steps for the bill before it hits the governor’s desk.

This is the furthest a call to extend nightlife hours has made it in the Legislature since Prohibition. The Let Our Communities Adjust Late Night, or Local Act, is nearly identical to two bills proposed by Wiener’s predecessor, Mark Leno. Leno’s most recent attempt was in 2013, but that bill failed to get enough support in committee and was withdrawn.

So why the momentum this time around?

MBA BY THE BAY: See how an MBA could change your life with SFGATE's interactive directory of Bay Area programs.

Wiener attributes the bipartisan support to several things: new legislators, a larger population of young people in cities like San Francisco who would take advantage of the later hours, and increased transportation options.

Uber and Lyft have soared in popularity since 2013. Both ride-hailing companies are alternatives for people looking to get home after public transit lines stop running or reduce service.

“When I first came in the mid-1990s, getting a cab at 2 a.m. was almost impossible, and I knew a lot of people that drove — but today I don’t know anyone who drives when they go out,” Wiener said.

Jim Lazarus, senior vice president of the San Francisco Chamber of Commerce, which supports this bill, said the advent of Uber and Lyft should be factored into the Legislature’s decision to extend bar hours.

“We are seeing a huge change in how people get around,” he said. “You’re not waiting for some infrequent owl service bus, and there’s a reasonably priced alternative vehicle service from virtually every part of the city.”

Supporters of the bill say it will stimulate the state’s economy as cities that adopt later hours become more attractive to tourists.

Cities with late-night bar hours beyond 2 a.m. include Chicago, Washington, New York, Las Vegas, Miami Beach, New Orleans and Atlanta.

Some bars in San Francisco are already allowed to stay open until 5 a.m. — but they must stop serving alcohol at 2 a.m. Jamie Zawinski, owner of DNA Lounge, a club that has struggled in recent months, said being able to extend the hours it can sell alcohol would be a boon for his business.

Shawn Refoua, who has trained thousands of bartenders in San Francisco through California Academy of Bartending and Mixology, said that nearly every “hardworking bartender” he knows would appreciate the extra money from the additional hours.

But, he said, those later hours could come with its downfalls: “It’s going to mess with the violence. More rowdiness, people drinking longer ... and you’re going to get a lot of people staying out until 4 a.m. and then waiting for BART to open up again.”

Opponents say the bill puts alcohol revenue ahead of public safety.

“Times have changed, and people are just not as concerned about public health and safety as they were in 2013,” said Michael Scippa, director of public affairs for Alcohol Justice. “We have become a little more immune and numb.”

Both the California Police Chiefs Association and the California State Sheriffs’ Association strongly opposed Leno’s bill in 2013, but have declined to comment on Wiener’s bill.

But Bill Brown, president of the sheriffs association, said he would be “hard pressed” to see a benefit to keeping bars open later.

Trisha Thadani is a San Francisco Chronicle staff writer. Email: tthadani@sfchronicle.com Twitter: @TrishaThadani