mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-14 17:24:55 +02:00
Fix #1393
This commit is contained in:
parent
ac002c5588
commit
e90cb6b1ac
@ -130,7 +130,7 @@ sub manage_selection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$entry->{created} =~ /^(\d+)-(\d+)-(\d+)T(\d+)[:\/](\d+)[:\/](\d+)Z$/;
|
$entry->{created} =~ /^(\d+)-(\d+)-(\d+)T(\d+)[:\/](\d+)[:\/](\d+)Z$/;
|
||||||
my $dt = DateTime->new(year => $1, month => $2, day => $3, hour => $4, minute => $5, second => $6, %tz);
|
my $dt = DateTime->new(year => $1, month => $2, day => $3, hour => $4, minute => $5, second => $6, %$tz);
|
||||||
my $created_time = $dt->epoch;
|
my $created_time = $dt->epoch;
|
||||||
my $creation_seconds = time() - $created_time;
|
my $creation_seconds = time() - $created_time;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user