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

--- Comment #28 from Marc VĂ©ron <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to