Upon the filing of the petition, the clerk of the juvenile court shall set the same for hearing within 30 days, except that in the case of a minor detained in custody at the time of the filing of the petition, the petition must be set for hearing within 15 judicial days from the date of the order of the court directing such detention.
Ca. Welf. and Inst. Code § 334