[Koha-bugs] [Bug 11253] tools/inventory.pl output_pref ignores 'iso' parameter passed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 21 03:11:06 CEST 2014


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

--- Comment #15 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Jonathan Druart from comment #11)
> Why the last past does not change the call to output_pref for the $cdls
> variable? It made sense!

Ah, I was looking at the line that caused the explosion. :)

There are two lines, much later in the code, which could be tweaked. However,
their disrespect for the iso parameter seems irrelevant, as dd/mm/yyyy didn't
blow up (clicking submit button in the barcode section after choosing a file).
I suspect that $_->{datelastseen} is in SQL format (YYYY-MM-DD) for the $cdls,
and the first one's disrespect still generates a valid date for $dls.

I think there is merit for a follow up if one wants truly nice code (i.e. not
working by accident).

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


More information about the Koha-bugs mailing list