This commit is contained in:
qgarnier 2020-10-19 11:02:13 +02:00 committed by GitHub
parent 512685c6c7
commit a0d7e30cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ sub get_diff_time {
my ($self, %options) = @_;
# '29/10/2018 08:44:54'
return if ($options{time} !~ /^\s*(\d{4})\/(\d{2})\/(\d{2})\s+(\d+):(\d+):(\d+)/);
return undef if ($options{time} !~ /^\s*(\d{4})\/(\d{2})\/(\d{2})\s+(\d+):(\d+):(\d+)/);
my $tz = centreon::plugins::misc::set_timezone(name => $self->{option_results}->{timezone});
my $dt = DateTime->new(