[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
Wed Jan 14 16:46:02 CET 2015


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

--- Comment #28 from Marc Véron <veron at veron.ch> ---
The crash occurs in Koha/DateUtils.pm

DateUtils.pm line 92, sub dt_from_string 

return DateTime::Format::DateParse->parse_datetime( $date_string,
            $tz->name() );

Description:
Passed a date string returns a DateTime object format and timezone default
to the system preferences. If the date string is empty DateTime->now is
returned

I propose to have a new bug to change the function for testing the validity of
the string and return DateTime->now as well if the date string is not valid.
Validation could be done e.g. with DateTime::Format::DateManip->parse_datetime
( $datestring ).

-- 
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