CA Penal Code § 1171 (2021)
2021 California Code|Penal Code - PEN|PART 2 - OF CRIMINAL PROCEDURE|TITLE 7 - OF PROCEEDINGS AFTER THE COMMENCEMENT OF THE TRIAL AND BEFORE JUDGMENT|CHAPTER 4.5 - Trial Court Sentencing|ARTICLE 1 - Initial Sentencing|Section 1171.

1171.  (a) Any sentence enhancement that was imposed prior to January 1, 2018, pursuant to Section 11370.2 of the Health and Safety Code, except for any enhancement imposed for a prior conviction of violating or conspiring to violate Section 11380 of the Health and Safety Code is legally invalid.(b) The Secretary of the Department of Corrections and Rehabilitation and the county correctional administrator of each county shall identify those persons in their custody currently serving a term for a judgment that includes an enhancement described in subdivision (a) and shall provide the name of each person, along with the person’s date of birth and the relevant case number or docket number, to the sentencing court that imposed the enhancement. This information shall be provided as follows:(1) By March 1, 2022, for individuals who have served their base term and any other enhancements and are currently serving a sentence based on the enhancement. For purposes of this paragraph, all other enhancements shall be considered to have been served first.(2) By July 1, 2022, for all other individuals.(c) Upon receiving the information described in subdivision (b), the court shall review the judgment and verify that the current judgment includes a sentence enhancement described in subdivision (a). If the court determines that the current judgment includes an enhancement described in subdivision (a), the court shall recall the sentence and resentence the defendant. The review and resentencing shall be completed as follows:(1) By October 1, 2022, for individuals who have served their base term and any other enhancement and are currently serving a sentence based on the enhancement.(2) By December 31, 2023, for all other individuals.(d) (1) Resentencing pursuant to this section shall result in a lesser sentence than the one originally imposed as a result of the elimination of the repealed enhancement, unless the court finds by clear and convincing evidence that imposing a lesser sentence would endanger public safety. Resentencing pursuant to this section shall not result in a longer sentence than the one originally imposed.(2) The court shall apply the sentencing rules of the Judicial Council and apply any other changes in law that reduce sentences or provide for judicial discretion so as to eliminate disparity of sentences and to promote uniformity of sentencing.(3) The court may consider postconviction factors, including, but not limited to, the disciplinary record and record of rehabilitation of the defendant while incarcerated, evidence that reflects whether age, time served, and diminished physical condition, if any, have reduced the defendant’s risk for future violence, and evidence that reflects that circumstances have changed since the original sentencing so that continued incarceration is no longer in the interest of justice.(4) Unless the court originally imposed the upper term, the court may not impose a sentence exceeding the middle term unless there are circumstances in aggravation that justify the imposition of a term of imprisonment exceeding the middle term, and those facts have been stipulated to by the defendant, or have been found true beyond a reasonable doubt at trial by the jury or by the judge in a court trial.(5) The court shall appoint counsel.(e) The parties may waive a resentencing hearing. If the hearing is not waived, the resentencing hearing may be conducted remotely through the use of remote technology, if the defendant agrees.(Added by Stats. 2021, Ch. 728, Sec. 2. (SB 483) Effective January 1, 2022.)