[Koha-bugs] [Bug 13601] Get rid of DateTime::Format::DateParse

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 10 09:17:38 CET 2015


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

Jonathan Druart <jonathan.druart at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36737|0                           |1
        is obsolete|                            |

--- Comment #23 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 36754
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36754&action=edit
Bug 13601: Fix special case in basket.pl

There is a badly managed date in acqui/basket.pl:
if the date is 15/01/2015 (metric format), it will become
2015-1-15 after the following line:
  $estimateddeliverydate = "$year-$month-$day";
Add_Delta_Days is used at several place, and the ouput is forced to
display date on 4 digits and month/day on 2 digits.
This patch does the same thing for $estimateddeliverydate.

Note that I previously developed a patch to take this format into account (with
missing 0)
in Koha::DateUtils::dt_from_string, but I don't think it's a good idea
to manage bad formated dates.
We will certainly find some issues after previous patches, but it will permit
to catch
them!
IMO it's preferable than to keep them hidden.

The patch was:

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


More information about the Koha-bugs mailing list