I called it!

California said they were outlawing Gasoline motors by 2040...

Close, but that's not totally accurate. The Executive Order signed by CA's Governor is simply a formalized goal of limiting sales of new passenger vehicles to ZE by 2035 among other things. The EO is far from an actual "law" and current vehicles on the road are not affected by it.