; or (ii) is released from the custody of that State (other than to the custody of another State or the Federal Government to serve a term of imprisonment for a felony conviction). (B) Misdemeanor conviction In the case of such an individual who has been convicted of a misdemeanor, the notification required under paragraph (1) shall be given on the date on which such individual is sentenced by a State court. (b) Federal notification (1) Notification Any individual who has been convicted of a criminal offense under Federal law shall be notified in accordance with paragraph (2) that such individual has the right to vote in an election for Federal office pursuant to the Democracy Restoration Act of 2017 and may register to vote in any such election. (2) Date of notification (A) Felony conviction In the case of such an individual who has been convicted of a felony, the notification required under paragraph (1) shall be given— (i) in the case of an individual who is sentenced to serve only a term of probation, by the Assistant Director for the Office of Probation and Pretrial Services of the Administrative Office of the United States Courts on the date on which the individual is sentenced