july dates bug

Diskussions related to the development of PhpLogCon

Google Ads


july dates bug

Postby JeanBombeur » Tue Jul 03, 2012 2:40 pm

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 ) )
JeanBombeur
New
 
Posts: 5
Joined: Thu Jun 28, 2012 2:30 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: july dates bug

Postby JeanBombeur » Wed Jul 04, 2012 2:38 pm

I made a mistake, I was parsing the wrong field in logstreamlineparsersyslog.class.php (#11 insted of #1), it works now.
JeanBombeur
New
 
Posts: 5
Joined: Thu Jun 28, 2012 2:30 pm

Google Ads



Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests

cron