]> git.koha-community.org Git - koha.git/commit
Bug 11148: remove two superflous routines from Koha::DateUtils
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 28 Oct 2013 14:10:26 +0000 (15:10 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Aug 2014 10:45:28 +0000 (12:45 +0200)
commitd9fbbf1a972032e9c23bfb677c3c7563305b92c9
tree14c4a4aefe4cb0407451adaf17b89e4b09b0004d
parent01e627b6412bbb3d2fc82900014c118dc5b06a57
Bug 11148: remove two superflous routines from Koha::DateUtils

There are 2 useless routines in the Koha::DateUtils
module:output_pref_due and format_sqlduedatetime. We can call
output_pref and format_datetime with dateonly = 0.

format_sqlduedatetime is only used in one place: opac-reserve.pl

Test plan:
1/ Verify on the opac-reserve.pl page that the date is correctly
displayed for for onloan items (you should use the "specific copy"
feature).
2/ Launch prove t/DateUtils.t UT file and verify all UT pass.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Due date on opac-reserve shown correctly. Unit tests pass.
Did a grep on both function names.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
No references to subs found. Passes koha-qa.pl, t and xt

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit b9492e73f59439e218e7f657bdfcf67026834311)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/DateUtils.pm
opac/opac-reserve.pl
t/DateUtils.t