The Court of Appeal holds defendant was entitled to presentence conduct credits for time spent in a state hospital receiving competency treatment. The court reasons that while the 2021 amendments to PC 4019 extending credits to defendants receiving competency treatment in state hospitals do not apply retroactively, equal protection principles compel application of the 2019 amendments to PC 4019 (extending credits to defendants receiving competency treatment in county jails) to defendants receiving such treatment in state hospitals. The court disagrees with People v. Orellana (2022) 74 Cal.App.5th 319.