From e90cb6b1acf422be82ba7cda0f4a94e1ef1397ea 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/storage/purestorage/restapi/mode/pgroupreplication.pm b/storage/purestorage/restapi/mode/pgroupreplication.pm index 8acb9648f..5f70c2ef0 100644 --- a/storage/purestorage/restapi/mode/pgroupreplication.pm +++ b/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;