Despite section 15 of the Criminal Code, it is not a justification, excuse or defence with respect to an offence under any of sections 4 to 7 that the offence was committed in obedience to or in conformity with the law in force at the time and in the place of its commission.
Federal laws of Canada reproduced under the Reproduction of Federal Law Order (SI/97-5); not the official version. Source: Justice Laws Website.