Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#197 Support for ISO datetime format

open
nobody
None
1
2013-02-14
2013-02-05
Alan
No

This is a patch that adds support to awstats 7.1 to parse the date format used by syslog-ng (iso format).
The format is: yyyy-mm-ddThh:mm:ss+00:00

1 Attachments

Discussion

  • Patch added into dev branch.

     
  • I haven't been able to test this patch, but from reading it, it'll fail on TZ's which are 'behind' GMT (-08:00), like California.

     
  • Here's a regex which should handle + or - TZ's and do a little more verification:
    +"([^$LogSeparatorWithoutStar]+T[^$LogSeparatorWithoutStar]+)([-+]\d\d:\d\d)"
    Just swap in this one line for the similar line in the patch.