[Koha-bugs] [Bug 4402] Date filter in parcels.tt requires db format dates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 13 11:56:38 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4402

--- Comment #17 from Marc Véron <veron at veron.ch> ---
I tested with dateformat dd/m/yyy
and entered manually:
From: 1/2/2014
To: 15/2/2014

The date picker came up for both fields. 
I canceled date picker both times and then hit "Filter".

Result:
-----
Software error:

The 'day' parameter ("2014") to DateTime::new did not pass the 'an integer
which is a possible valid day of month' callback
 at /usr/lib/perl5/DateTime.pm line 199
    DateTime::new(undef, 'month', 2, 'day', 2014, 'year', 1915, 'time_zone',
'Europe/Zurich', ...) called at /usr/share/perl5/DateTime/Format/DateParse.pm
line 58
    DateTime::Format::DateParse::parse_datetime('DateTime::Format::DateParse',
'15/02/2014', 'Europe/Zurich') called at /usr/share/kohaclone/Koha/DateUtils.pm
line 92
    Koha::DateUtils::dt_from_string('15/02/2014', 'iso') called at
/usr/share/kohaclone/acqui/parcels.pl line 145
-----

If I do the same without patch, no error occurs.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list