TPAC - Add parse_datetime to expire_date user/paxed/expire-date-parsing-signoff
authorBen Shum <bshum@biblio.org>
Fri, 25 Jan 2013 14:37:29 +0000 (09:37 -0500)
committerPasi Kallinen <pasi.kallinen@pttk.fi>
Wed, 30 Jan 2013 12:38:54 +0000 (14:38 +0200)
commitf0359c0ddbd17078f84b58bf60a2944ae575a5e9
treee1e090537d18d08c415772a83877b463890042c7
parentfbded261a9e82a9135e9e346ceee6cfa3c6e087a
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>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Open-ILS/src/templates/opac/parts/myopac/main_base.tt2