Hello all,
I upgraded to version 2012062101 of the certificate module and since then my custom field for expiration date does not display the correct date. I initially was receiving 500 error with my custom certificates after the upgrade but figuring out how to fix that was simple enough but this I can't seem to figure out for some reason. Below is my a code which I have placed on line 7 of the certificate.php in my custom certificate type folder along with a screen cap of the date that is displayed... It should show two years from the date issued.
// Set expiration date
$expdate = str_replace(' 0', ' ', strftime('%B %d, %Y',(strtotime("+2 years", $certificatedate))));
And this is how the expdate is placed on the certificate:
certificate_print_text($pdf, 158, 170 + 10, 'L', 'Helvetica', '', 11, utf8_decode("Expires: ".$expdate));
What it displays: