Bugzilla – Attachment 50593 Details for
Bug 14362
PEGI 15 Circulation/AgeRestrictionMarkers test fails
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14362: PEGI15 Circulation/AgeRestrictionMarkers test fails
Bug-14362-PEGI15-CirculationAgeRestrictionMarkers-.patch (text/plain), 1.45 KB, created by
Jonathan Druart
on 2016-04-23 06:33:09 UTC
(
hide
)
Description:
Bug 14362: PEGI15 Circulation/AgeRestrictionMarkers test fails
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-23 06:33:09 UTC
Size:
1.45 KB
patch
obsolete
>From a5eb009c6f8b975568deda65830b2ef75248c485 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sun, 7 Jun 2015 21:26:53 -0400 >Subject: [PATCH] Bug 14362: PEGI15 Circulation/AgeRestrictionMarkers test > fails > >It is best to test when UTC date is a date in the future compared >to your timezone. I'm in Eastern, so right now, I expect this >test to fail for another 2.5 hours. > >TEST PLAN >--------- >1) prove t/Circulation/AgeRestrictionMarkers.t > -- fails for PEGI 15 after 9pm. >2) Apply patch >3) prove t/Circulation/AgeRestrictionMarkers.t > -- works. >4) koha qa test tools > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Circulation.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 81c6947..cd096fb 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -4005,7 +4005,8 @@ sub GetAgeRestriction { > } > > #Get how many days the borrower has to reach the age restriction >- my $daysToAgeRestriction = Date_to_Days(@alloweddate) - Date_to_Days(Today); >+ my @Today = split /-/, DateTime->today->ymd(); >+ my $daysToAgeRestriction = Date_to_Days(@alloweddate) - Date_to_Days(@Today); > #Negative days means the borrower went past the age restriction age > return ($restriction_year, $daysToAgeRestriction); > } >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14362
:
39969
|
39977
|
39978
|
39979
|
39980
|
40111
|
40112
|
40325
|
40326
|
42163
|
42164
|
42172
|
42173
|
42174
|
50555
|
50556
| 50593 |
50594
|
50595