 In 2009, the Parliament of Canada passed the "Truth in Sentencing Act" which mostly eliminated a judge's discretion to give credit for pre-trial custody beyond one day for every day served.The bill received Royal Assent on October 23, 2009 and came into force on February 22, 2010.The new law came into effect on March 1, 2010, but the new law does not apply to accused persons taken into custody before that date.