[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
Wed May 18 09:32:31 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30717

--- Comment #10 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Marcel de Rooy from comment #8)
> 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.

Please report when you find bugs :)

See https://gitlab.com/koha-community/qa-test-tools/-/issues/60

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list