Excuse me, the public security organ that committed theft detained him for several months, which delayed the trial. Is this in accordance with legal procedures?

This situation is likely to happen.

The court session time is influenced by many factors, and the specific time is hard to say.

According to the longest time, not extended, as follows:

Detention for 30 days-arrest approved for 7 days-detention for 2 months after arrest-1 month transfer for review and prosecution-1 month judgment.

The public security organ may impose criminal detention on an active criminal or a major suspect. Detainees should be questioned within 24 hours after detention. A criminal suspect may hire a lawyer to provide him with legal advice, complaints and accusations after the first interrogation by the investigation organ or from the day when compulsory measures are taken. The entrusted lawyer has the right to know the charges charged by the criminal suspect from the investigation organ, to meet the criminal suspect in custody and to know the relevant information from the criminal suspect.

If the public security organ deems it necessary to arrest the detained person, it shall submit it to the people's procuratorate for examination and approval within three days after detention. Under special circumstances, the approval time can be extended by one to four days. For major suspects who commit crimes on the run, commit crimes many times or commit crimes in collusion, the time for submitting for examination and approval may be extended to 30 days. The people's procuratorate shall, within seven days after receiving the approval letter from the public security organ, make a decision on whether to approve or disapprove the arrest. If the people's procuratorate does not approve the arrest, the public security organ shall immediately release it after receiving the notice and promptly notify the people's procuratorate to execute it. Those who need to continue the investigation and meet the conditions of obtaining a guarantor pending trial or residential surveillance shall be granted a guarantor pending trial or residential surveillance according to law.

If the suspect is arrested, the lawyer hired can apply for bail pending trial.

The public security organ shall not detain a criminal suspect for more than two months after his arrest. If the case is complicated and cannot be concluded at the expiration of the time limit, it may be extended for one month with the approval of the people's procuratorate at the next higher level.

When investigating a closed case, the public security organ shall ensure that the facts of the crime are clear and the evidence is true and sufficient, write a prosecution opinion and transfer it to the people's procuratorate at the same level for examination and decision together with the case file and evidence.