(a) If a child alleged to be a child in need of services is being held in a secure residential facility or nonsecure residential facility, a continued custody hearing shall be held within 24 hours, excluding weekends and holidays. If such hearing is not held within the time specified, such child shall be released from temporary detention in accordance with subsection (c) of Code Section 15-11-411 and with authorization of the detaining authority.
(b) If a child alleged to be a child in need of services is not being held in a secure residential facility or nonsecure residential facility and has not been released to the custody of such child's parent, guardian, or legal custodian, a hearing shall be held within 72 hours, excluding weekends and holidays, after such child is placed in foster care.