fix mode eventlog imm

This commit is contained in:
qgarnier 2017-06-20 10:22:32 +02:00
parent e7cd621634
commit ea4c5220b9
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ sub manage_selection {
my $result = $options{snmp}->map_instance(mapping => $mapping, results => $snmp_result, instance => $instance);
my $date = $result->{eventLogDate} . ' ' . $result->{eventLogTime};
$date =~ /^(\d+)\/(\d+)\/(\d+)\s+(\d+)\/(\d+)\/(\d+)/;
$date =~ /^(\d+)\/(\d+)\/(\d+)\s+(\d+)[:\/](\d+)[:\/](\d+)/;
my $dt = DateTime->new(year => $3, month => $1, day => $2, hour => $4, minute => $5, second => $6,
time_zone => $self->{option_results}->{timezone});