Merge branch 'ent-5381-9482-problemas-windows-server-con-742fix' into 'develop'

Fix Windows strftime reference

See merge request artica/pandorafms!3032
This commit is contained in:
Daniel Rodriguez 2020-01-29 13:20:51 +01:00
commit 783331d18b
4 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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;