[Koha-bugs] [Bug 30717] Dates displayed in ISO format when editing items
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 13 09:52:10 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30717
--- Comment #8 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Took me bit to figure out this qa tools warn, but this is the cause:
perl -cw outputs:
$VAR1 = 'Subroutine dt_from_string redefined at Koha/DateUtils.pm line 58.
Subroutine output_pref redefined at Koha/DateUtils.pm line 269.
Subroutine format_sqldatetime redefined at Koha/DateUtils.pm line 360.
Subroutine flatpickr_date_format redefined at Koha/DateUtils.pm line 392.
Koha/DateUtils.pm syntax OK
';
The line Subroutine flatpickr_date_format redefined at Koha/DateUtils.pm line
392.
goes thru the following regex:
s/at .* line .*$// for @errors;
And this regex is too generic. It already the last two letters at from the
subroutine name!
So it leaves: Subroutine flatpickr_date_form
Which is no longer removed by the redefined regex..
s/^Subroutine .* redefined $// for @errors;
Since redefined was already eaten.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list