From 04828c256e8af0fba82e50266f2db28f56a8c4dd Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 14 Feb 2019 15:08:54 +0100 Subject: [PATCH] Fix #1393 --- .../storage/purestorage/restapi/mode/pgroupreplication.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/storage/purestorage/restapi/mode/pgroupreplication.pm b/centreon-plugins/storage/purestorage/restapi/mode/pgroupreplication.pm index 8acb9648f..5f70c2ef0 100644 --- a/centreon-plugins/storage/purestorage/restapi/mode/pgroupreplication.pm +++ b/centreon-plugins/storage/purestorage/restapi/mode/pgroupreplication.pm @@ -130,7 +130,7 @@ sub manage_selection { } $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 $creation_seconds = time() - $created_time;