$registrationType->getClosingDate() in templates/registration/selectRegistrationType.tpl
only the date part gets returned (ie. 2010-04-15). I think the same problem would happen with registration options as well. I've been battling this problem all the way back to OCS 1.x. Where we don't have the problem anymore is with the abstract submission closing date. This date is retrieved with a different mechanism than the closing dates for registration types/options.
The function getClosingDate appears in:
classes/registration/RegistrationType.inc.php
classes/registration/RegistrationOption.inc.php
And these both call getData('closingDate').
I hacked together a pretty sad fix in templates/registration/selectRegistrationType.tpl
- Code: Select all
{assign var="closeDateNoTime" value=$registrationType->getClosingDate()}
{assign var="notQuiteMidnight" value=' 23:59:59'}
{assign var="closeDateWithTime" value=$closeDateNoTime$notQuiteMidnight}
and then, in any comparison containing $registrationType->getClosingDate(), I replaced it with $closeDateWithTime. Of course, I should've fixed it in the class file, but I couldn't figure out how to do that.
I didn't fix it for the registration options. I'll just make sure that the dates are set so that we don't run into problems with this.
