[Koha-bugs] [Bug 30196] Odd number of elements warning caused by dt_from_string
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 27 19:35:16 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30196
Shi Yao Wang <shi-yao.wang at inLibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |Needs Signoff
--- Comment #6 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
Also notice this code in t/DateUtils.t:
># Return undef if passed mysql 0 dates
>$dt0 = dt_from_string( '0000-00-00', 'iso' );
>is( $dt0, undef, "undefined returned for 0 iso date" );
This means it is supposed to return undef. This patch only makes it clearly
return undef instead of letting perl decide.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list