From e945720639f8cb1d042ee8ccf4c4d34ab18578a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Fri, 13 Mar 2015 17:30:09 +0100 Subject: [PATCH] Bug 13813 - Remove C4::Dates from C4/Log.pm To test: Apply patch Go to Home > Tools > Logs Search logs with different from- and to-dates, verify that date range displays as appropriate. --- C4/Log.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Log.pm b/C4/Log.pm index 80c3493..ab31b08 100644 --- a/C4/Log.pm +++ b/C4/Log.pm @@ -25,7 +25,7 @@ use strict; use warnings; use C4::Context; -use C4::Dates qw(format_date); +use Koha::DateUtils; use vars qw($VERSION @ISA @EXPORT); @@ -202,8 +202,8 @@ sub GetLogs { my $object = shift; my $info = shift; - my $iso_datefrom = C4::Dates->new($datefrom,C4::Context->preference("dateformat"))->output('iso'); - my $iso_dateto = C4::Dates->new($dateto,C4::Context->preference("dateformat"))->output('iso'); + my $iso_datefrom = output_pref({ dt => dt_from_string( $datefrom ), dateformat => 'iso', dateonly => 1 }); + my $iso_dateto = output_pref({ dt => dt_from_string( $dateto ), dateformat => 'iso', dateonly => 1 }); my $dbh = C4::Context->dbh; my $query = " -- 1.7.10.4