Bug 8251 - Follow up, use 'day' instead of 'days' for Datetime::truncate
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 21 Jun 2012 14:27:20 +0000 (11:27 -0300)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 6 Aug 2012 20:53:45 +0000 (08:53 +1200)
commit99a70e30a0f0e1eaac01ac873280681dfc72dd3d
treee4bdac64d809f9741fcb3fed5fec6f15b3da06d5
parent694e6bebfd98a45fc427a2a0aeb44bcf69cb7727
Bug 8251 - Follow up, use 'day' instead of 'days' for Datetime::truncate

As noted in comment #4 by Jonathan Druart, this should be fixed in every call
to DateTie::truncate function. This patch does exactly that.

julian_m tested that truncate( to => 'days' ) didn't actually do anything, so
it is understandable that this 'fix' might introduce new bugs as we might have
'fixed' at a higher libs level this issue.

'minutes' is used in truncate function too, so fixing.

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Conflicts:

Koha/DateUtils.pm

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm
Koha/Calendar.pm
Koha/DateUtils.pm
circ/overdue.pl
circ/returns.pl
members/moremember.pl