Bug 13242: Fix DateUtils for 'infinite' dates (ie year 9999)
authorFrédéric Demians <f.demians@tamil.fr>
Sat, 15 Nov 2014 12:23:06 +0000 (13:23 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 19 Nov 2014 14:32:21 +0000 (11:32 -0300)
commit0a41d247b57abe4a4eac25b40516653c3453bc6f
tree33f6cbd9aaf60526475aae38695b9a7fcd27e033
parent752c8bf043f6255bd53d7ffcaa2dfec1abc918a8
Bug 13242: Fix DateUtils for 'infinite' dates (ie year 9999)

TEST PLAN:

- Method 1--with UT

  - Use the UT associated to this bug, without applying this patch, and then
    after applying this patch

- Method 2--using Koha

  - Without this patch
  - Find a borrower with several checkouts that are not overdue.
  - Debarred the borrower
  - Go on circ/circulation-home.pl page
  - Select Check in tab, and do a check in
  - It required more than 20s to display the return.pl page
  - Apply the patch, and repeat previous steps
    => return.pl is immediately displayed.

Followed method 2. Time problem no longer exists.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/DateUtils.pm