@@ -, +, @@ --- C4/Dates.pm | 2 +- tools/exceptionHolidays.pl | 2 +- tools/newHolidays.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) --- a/C4/Dates.pm +++ a/C4/Dates.pm @@ -47,7 +47,7 @@ sub _prefformat { sub reset_prefformat { # subroutine to clear the prefformat, called when we change it if (defined $prefformat){ - $prefformat = C4::Context->preference('dateformat') || 'us'; + $prefformat = C4::Context->preference('dateformat') || 'us'; } } --- a/tools/exceptionHolidays.pl +++ a/tools/exceptionHolidays.pl @@ -41,7 +41,7 @@ if ($description) { } -my $datecancelrange = C4::Dates->new($datecancelrange)->output('iso'); +$datecancelrange = C4::Dates->new($datecancelrange)->output('iso'); my @dateend = split(/[\/-]/, $datecancelrange); $year1 = $dateend[0]; $month1 = $dateend[1]; --- a/tools/newHolidays.pl +++ a/tools/newHolidays.pl @@ -34,7 +34,7 @@ my $calendardate = sprintf("%04d-%02d-%02d", $year, $month, $day); my $isodate = C4::Dates->new($calendardate, 'iso'); $calendardate = $isodate->output('syspref'); -my $dateofrange = C4::Dates->new($dateofrange)->output('iso'); +$dateofrange = C4::Dates->new($dateofrange)->output('iso'); my @dateend = split(/[\/-]/, $dateofrange); $year1 = $dateend[0]; $month1 = $dateend[1]; --