[Koha-bugs] [Bug 29711] Release date not passed as ISO to about.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Dec 16 15:26:29 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29711

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 128627
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128627&action=edit
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 at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list