From 11a7a803466e260b52d81c93447dc01ce8dfa4cf Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 18 Sep 2017 18:55:13 +0200 Subject: [PATCH] fix date --- apps/java/awa/jmx/mode/agent.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/java/awa/jmx/mode/agent.pm b/apps/java/awa/jmx/mode/agent.pm index 8f4fb36fc..cbfb440dc 100644 --- a/apps/java/awa/jmx/mode/agent.pm +++ b/apps/java/awa/jmx/mode/agent.pm @@ -155,12 +155,12 @@ sub manage_selection { next; } - next if ($result->{$mbean}->{LastCheck} !~ /^\s*(\d+)-(\S+)-(\d+)\s+(\d+):(\d+):(\d+)/); + next if ($result->{$mbean}->{LastCheck} !~ /^\s*(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+)/); my $dt = DateTime->new( - year => $3, + year => $1, month => $2, - day => $1, + day => $3, hour => $4, minute => $5, second => $6,