In line 69 the timestamp variable now has time added to it, which mutates the original time.
now is then re-used later when setting the AuthenticationInstant, however it is not the current time being set, but the mutated one. This leads to the AuthenticationInstant having the same time as the NotOnOrAfter attribute.
A possible fix is to re-initialise the now variable, after it's mutated.
In line 69 the timestamp variable
nowhas time added to it, which mutates the original time.nowis then re-used later when setting theAuthenticationInstant, however it is not the current time being set, but the mutated one. This leads to theAuthenticationInstanthaving the same time as theNotOnOrAfterattribute.A possible fix is to re-initialise the
nowvariable, after it's mutated.