From 6cac196a24dfec0e26174f87cca360527b332cbf Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 22 Sep 2015 12:06:22 +0100 Subject: [PATCH] Bug 6679: Fix previous change to C4::Dates --- C4/Dates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Dates.pm b/C4/Dates.pm index b091b5b..3976f13 100644 --- a/C4/Dates.pm +++ b/C4/Dates.pm @@ -105,7 +105,7 @@ sub dmy_map { my $xsub = $dmy_subs{$dformat}; $debug and print STDERR "xsub: $xsub \n"; if ( $val =~ /$re/ ) { - my $aref = eval {$xsub}; + my $aref = eval $xsub; if ($dformat eq 'rfc822') { $aref = _abbr_to_numeric($aref, $dformat); pop(@{$aref}); #pop off tz offset because we are not setup to handle tz conversions just yet -- 2.1.0