A sentence of imprisonment upon a summary conviction takes effect from the date the offender is taken into custody upon his or her conviction.