Cal. Welf. & Inst. Code § 258
(a) Upon a hearing conducted in accordance with Section 257, and upon either an admission by the minor of the commission of a violation charged, or a finding that the minor did in fact commit the violation, the judge, referee, or juvenile hearing officer may do any of the following:
(8) Order that the minor perform community service work in a public entity or any private nonprofit entity, for not more than 50 hours over a period of 60 days, during times other than his or her hours of school attendance or employment. Work performed pursuant to this paragraph shall not exceed 30 hours during any 30-day period. The timeframes established by this paragraph shall not be modified except in unusual cases where the interests of justice would best be served. When the order to work is made by a referee or a juvenile hearing officer, it shall be approved by a judge of the juvenile court.
For purposes of this paragraph, a judge, referee, or juvenile hearing officer shall not, without the consent of the minor, order the minor to perform work with a private nonprofit entity that is affiliated with any religion.
(12) Make any or all of the following orders with respect to a violation of the Fish and Game Code which is not charged as a felony:
(b) If the minor is before the court on the basis of truancy, as described in subdivision (b) of Section 601, all of the following procedures and limitations shall apply:
(1) The judge, referee, or juvenile hearing officer shall not proceed with a hearing unless both of the following have been provided to the court:
(6) Upon a finding that the minor violated subdivision (b) of Section 601, the judge, referee, or juvenile hearing officer shall direct his or her orders at improving the minor’s school attendance. The judge, referee, or juvenile hearing officer may do any of the following:
(c)