Perl DateTime dependency not needed

This commit is contained in:
Andrew Bauer 2016-02-15 14:11:58 -06:00
parent 041585b4a2
commit 8a2dc2897d
1 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,6 @@ use autouse 'Pod::Usage'=>qw(pod2usage);
use LWP::UserAgent;
use Sys::MemInfo qw(totalmem);
use Sys::CPU qw(cpu_count);
use DateTime;
use POSIX qw(strftime uname);
$ENV{PATH} = '/bin:/usr/bin:/usr/local/bin';
@ -84,7 +83,7 @@ if ( $Config{ZM_TELEMETRY_DATA} )
my %telemetry;
$telemetry{uuid} = getUUID($dbh);
$telemetry{ip} = getIP();
$telemetry{timestamp} = DateTime->now( time_zone => "local" )->strftime("%Y-%m-%dT%H:%M:%S%z");
$telemetry{timestamp} = strftime( "%Y-%m-%dT%H:%M:%S%z", localtime() );
$telemetry{monitor_count} = countQuery($dbh,"Monitors");
$telemetry{event_count} = countQuery($dbh,"Events");
$telemetry{architecture} = runSysCmd("uname -p");