From e1ec22283268ee54aba91e63bd52a3e108c09c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Duret?= Date: Fri, 20 Feb 2015 10:26:16 +0100 Subject: [PATCH] Correction of End Date --- apps/kayako/mode/ticketcount.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/kayako/mode/ticketcount.pm b/apps/kayako/mode/ticketcount.pm index a01635249..ac33b4540 100644 --- a/apps/kayako/mode/ticketcount.pm +++ b/apps/kayako/mode/ticketcount.pm @@ -154,7 +154,7 @@ sub check_options { } else { my ($mday,$mon,$year) = split(/-/, $self->{option_results}->{'end_date'}); $end = $self->{option_results}->{'end_date'}; - $self->{option_results}->{'end_date'} = timelocal(0,0,0,$mday+1,$mon-1,$year); + $self->{option_results}->{'end_date'} = timelocal(59,59,23,$mday,$mon-1,$year); } } if (($self->{perfdata}->threshold_validate(label => 'warning', value => $self->{option_results}->{warning})) == 0) {