parent
512685c6c7
commit
a0d7e30cfa
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue