diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 4deb6a7420..689cd2122a 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -118,6 +118,7 @@ use XML::Simple; use HTML::Entities; use Time::Local; use Time::HiRes qw(time); +eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i); use POSIX qw(strftime); use threads; use threads::shared; diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index 14b27964fc..1070156b80 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -27,6 +27,7 @@ use Thread::Semaphore; use Time::Local; use XML::Parser::Expat; use XML::Simple; +eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i); use POSIX qw(setsid strftime); use IO::Uncompress::Unzip; use JSON qw(decode_json); diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm index aa34f3938e..bbe322c354 100644 --- a/pandora_server/lib/PandoraFMS/PluginTools.pm +++ b/pandora_server/lib/PandoraFMS/PluginTools.pm @@ -22,6 +22,7 @@ use Socket qw(inet_ntoa inet_aton); use File::Copy; use Scalar::Util qw(looks_like_number); use Time::HiRes qw(time); +eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i); use POSIX qw(strftime setsid floor); use MIME::Base64; use JSON qw(decode_json encode_json); diff --git a/pandora_server/lib/PandoraFMS/Tools.pm b/pandora_server/lib/PandoraFMS/Tools.pm index 7736a6f31b..2178b2787d 100755 --- a/pandora_server/lib/PandoraFMS/Tools.pm +++ b/pandora_server/lib/PandoraFMS/Tools.pm @@ -19,6 +19,7 @@ package PandoraFMS::Tools; use warnings; use Time::Local; +eval "use POSIX::strftime::GNU;1" if ($^O =~ /win/i); use POSIX qw(setsid strftime); use POSIX; use HTML::Entities;