From 965615441cbb16f486c3b4cd9c072d265b02dfd4 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 21 Feb 2019 12:56:51 +0100 Subject: [PATCH] fix toshiba timezone --- apps/toshiba/storemate/sql/mode/maintenanceplan.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/toshiba/storemate/sql/mode/maintenanceplan.pm b/apps/toshiba/storemate/sql/mode/maintenanceplan.pm index 89f354b85..ca6a0c770 100644 --- a/apps/toshiba/storemate/sql/mode/maintenanceplan.pm +++ b/apps/toshiba/storemate/sql/mode/maintenanceplan.pm @@ -116,7 +116,7 @@ sub manage_selection { } my ($i, $current_time) = (1, time()); - my $tz = centreon::plugins::misc::set_timezone(name => $self->{option_results}->{timezone})); + my $tz = centreon::plugins::misc::set_timezone(name => $self->{option_results}->{timezone}); while (my $row = $self->{sql}->fetchrow_hashref()) { # date form: 2017-09-22 01:01:08.133 $row->{LOGDATE} =~ /^(\d+)-(\d+)-(\d+)\s+(\d+)[:\/](\d+)[:\/](\d+)/;