When parsing the teams.yaml file, the release date is (correctly) parsed from epoch into a DateTime, but the $KohaDates filter expects 'iso' formatted dates, and stringifying the 'dt' object leads to non-comformant datetime format. To test: 1. On current master 2. Point your staff interface to the About page => FAIL: It explodes because of date formats
Created attachment 128627 [details] [review] Bug 29711: Pass release date in ISO to about.tt This patch makes the date be converted into ISO format so it is correctly handled by the KohaDates TT filter. To test: 1. Point your browser to the about page => FAIL: It explodes: Template process failed: undef error - The given date (2022-05-22T00:00:01) does not match the date format (iso) 2. Apply this patch 3. Restart: $ koha-plack --restart kohadev 4. Repeat 1 => SUCCESS: It doesn't explode, shows the right date! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This is really ugly...
I meant, not your patch :) But what we need to do. That is plain wrong.
I can't replicate this on master and using KTD. Does this only apply for a specific version?
(In reply to David Nind from comment #4) > I can't replicate this on master and using KTD. Same for me. And I dont see where this date is used.
No idea why this has been magically fixed.. If there is something to clean, it will be on bug 30718.
(In reply to Jonathan Druart from comment #6) > No idea why this has been magically fixed.. DateTime magician, I summon theeeeee