TPAC - Add parse_datetime to expire_date user/bshum/expire-date-parsing
authorBen Shum <bshum@biblio.org>
Fri, 25 Jan 2013 14:37:29 +0000 (09:37 -0500)
committerBen Shum <bshum@biblio.org>
Fri, 25 Jan 2013 14:37:29 +0000 (09:37 -0500)
commitb1f079b289b1da7ad622f87334b6ffa1b8e32e28
tree50414d1ef5b10af6728138cb711a7ad978a81101
parentbcfcca4497edd20f91358a92330e45620cbd28da
TPAC - Add parse_datetime to expire_date

As reported by paxed in IRC, sometimes the function for expire_date has
troubles and you get an apache internal server error page and log errors
like:

egweb: template error: date error - bad time/date string:
expects 'h:m:s d:m:y'  got: '2015-01-31T00:00:00+0200'

Adding the ctx.parse_datetime() function to wrap the ctx.user.expire_date
resolves this problem.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/myopac/main_base.tt2