[Koha-bugs] [Bug 14016] Due dates in OPAC show 0:00 when it should be 23:59

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 20 11:03:03 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14016

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 38161
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38161&action=edit
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.

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


More information about the Koha-bugs mailing list