(1) A person who willfully swears or affirms falsely to any oath or affirmation, or willfully procures another person to swear or affirm falsely to an oath or affirmation, in connection with or arising out of voting or elections commits a felony of the third degree, punishable as provided in s. 775.082, s. 775.083, or s. 775.084. (2) A person who willfully submits any false voter registration information commits a felony of the third degree, punishable as provided in s. 775.082 or s. 775.083. (3) A person may not be charged or convicted for a violation of this section for affirming that he or she has not been convicted of a felony or that, if convicted, he or she has had voting rights restored, if such violation is alleged to have occurred on or after January 8, 2019, but before July 1, 2019.