Page 1 of 1

july dates bug

PostPosted: Tue Jul 03, 2012 2:40 pm
by JeanBombeur
Hi, I have a problem displaying july's dates on LogAnalyzer v3.4.3.

The input log line starts with 2012-07-03T10:50:30+02:00, which would be parsed in 2012-07-03 10:50:30, but actually it's displayed as 2011-12-03 10:50:30, I don't know why. Others dates until june are correctly displayed, only july doesn't work.

2012-07-02T09:04:39+02:00 is displayed as 2011-12-02 09:04:39 => bad
2012-07-01T13:17:26+02:00 is displayed as 2011-12-01 13:17:26 => bad
2012-06-30T13:17:25+02:00 is displayed as 2012-06-30 13:17:25 => correct

My functions_common.php should match this case:

Code: Select all
// Sample: 2008-04-02T11:12:32+02:00
        else if ( preg_match("/([0-9]{4,4})-([0-9]{1,2})-([0-9]{1,2})T([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})([+-])([0-9]{1,2}):([0-9]{1,2})/", $szTimStr, $out ) )

Re: july dates bug

PostPosted: Wed Jul 04, 2012 2:38 pm
by JeanBombeur
I made a mistake, I was parsing the wrong field in logstreamlineparsersyslog.class.php (#11 insted of #1), it works now.