Bug 14016: Restore correct date format on issue date (00:00 vs 23:59)
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 20 Apr 2015 08:41:19 +0000 (10:41 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 22 Apr 2015 19:24:02 +0000 (16:24 -0300)
commit9ad8b86643b4a5698851ce4a67122ca35c2a1b61
tree333d3a751f9f1c41b46d8b7f312bf3bd01474dbb
parent88eb0323d7bde5bc91b7c58bce2848fb502eb076
Bug 14016: Restore correct date format on issue date (00:00 vs 23:59)

Introduced by bug 13601, and same fix used in bug 10423 and bug 12847:
the date_due retrieved from the DB is modified.

There are some problems:
1/ There is confusion between the iso and sql formats in the codebase.
2/ Since bug 13601, dt_from_string does not manage the iso format (there
are occurrences of 'iso' but it assumes that both formats are
identical).

To solve the issue, 2 solutions:
1/ Same as bug 10423 and bug 12847: try to get rid of the change done on
date_due in C4::Members::GetPendingIssues, it should be kept as the sql
value.
2/ Too many errors found and another fallback should be added to
dt_from_string (if 'iso' is passed, try sql then iso).

Test plan:
Go on the checkout list at the OPAC and confirm that the due dates are
correctly formatted.

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Members.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt