From 24976c486048601e4791211c37fc47e40ac99388 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 27 Apr 2021 17:58:20 +0200 Subject: [PATCH] Disable timezone offset while setting timestamp from server --- pandora_server/lib/PandoraFMS/DataServer.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index 0006482ea1..9445b518ee 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -280,6 +280,11 @@ sub process_xml_data ($$$$$) { $timezone_offset = 0; } + # If set by server, do not use offset. + if ($pa_config->{'use_xml_timestamp'} eq '0') { + $timezone_offset = 0; + } + # Parent Agent Name my $parent_id = 0; # Default value for unknown parent my $parent_agent_name = $data->{'parent_agent_name'};