Homosexuality and the Anglican Communion underwent a profound change in regards to homosexuality. The last same-sex attracted person to be sent to prison indefinitely as a "dangerous sex offender" was in 1967. In 1969, the Canadian parliament passed amendments of the Criminal Code, decriminalising homosexuality in Canada. On 20 July 1971, the last gay man criminally convicted because of his sexual orientation was released from prison. A series of judicial rulings beginning in 2003 legalised same-sex marriage in the majority of Canada's provinces, and on 20 July 2005, the Canadian government extended the new definition nationwide by statute. Currently ten Anglican dioceses (Edmonton, Nova Scotia
Homosexuality in Sri Lanka would not be able to enforce the criminal law Section 365A if a case was brought before it. In January 2017, cabinet members of the Sri Lankan Government rejected the chance to legalize homosexuality. But in November, Deputy Solicitor General Nerin Pulle stated that the government would move to decriminalize same-sex sexual activity. Sri Lanka lacks a strong culture and environment for homosexual men. There are a handful of establishments aimed exclusively at homosexuals and lesbians, but the majority of bars and clubs frequented by homosexual men cater for a mixed crowd of both heterosexual and homosexual people. The media