Correction of End Date

This commit is contained in:
Stéphane Duret 2015-02-20 10:26:16 +01:00
parent b7b9ab8a9f
commit e1ec222832
1 changed files with 1 additions and 1 deletions

View File

@ -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) {