Story highlights

The sentence includes time he has already spent detained

He will leave Indonesia after the release

He will be blacklisted from re-entering Indonesia for 6 months

(CNN) —  

Indonesia on Sunday released an Australian teen convicted of marijuana possession on the resort island of Bali after the boy spent two months in detention, a local prosecutor said.

The sentence includes time already served so he is scheduled to be released on December 4, local prosecutors said Friday.

He will leave Indonesia and will be blacklisted from re-entering the nation for six months, prosecutor Gusti Gede Putu Atmaja said.

After he has arrested in October, the teen was moved from a prison to an immigration center because the latter is more favorable for a teenager, the prosecutor said.

Authorities arrested him while he was on holiday with his parents in Bali.

After the arrest, the boy’s attorney, Mohammad Rifan, said he had hoped to avoid a prison sentence and have him released to undergo drug rehabilitation.

Indonesia’s drug laws are among the strictest in the world. But they have a provision, article 128, under which those arrested with small amounts of drugs can be released to rehabilitation if they can prove they are an addict. In the case of underage offenders, that requires a declaration from the youth’s parents, officials have said.

A spokesman for Indonesia’s Ministry of Foreign Affairs said last month that the nation’s policy on drug offenses is clear.

“I believe everybody should know by now that illegal drugs in Indonesia will face a really severe penalty,” Michael Tene said.

The case has drawn international attention, prompting Australian Prime Minister Julia Gillard to speak to the teenager on the phone, the Australian Broadcasting Corp. said last month. Gillard’s office told the network that she offered reassurance to the youth.

Visitors to the country are warned on arrival that some drug crimes carry a maximum penalty of death.

Still, many have been arrested and convicted for various drug offenses. Two Australians are on death row in a Bali prison while six others are serving life sentences.

Journalist Meidyana Rayana contributed to this report