acaudwell/Logstalgia — pull request #1 by floam (2012-09-27 07:18:50+00:00)
Title: Fix parse error with missing timezone offsets

I got this error, with even a single line of CherryPy's default access log format. It's supposedly standard NCSA combined.

`logstalgia: could not parse first entry`

Here's a line that does it:

`38.100.210.126 - - [21/Jun/2012:23:49:36] "GET / HTTP/1.1" 200 3355 "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.19 (KHTML, like Gecko) Version/6.0 Safari/536.19"`

If you manually add a timezone offset it works fine, like this:

`38.100.210.126 - - [21/Jun/2012:23:49:36 +0000] "GET / HTTP/1.1" 200 3355 "" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8) AppleWebKit/536.19 (KHTML, like Gecko) Version/6.0 Safari/536.19"`

This change fixed it, not certain if I broke other stuff. I think it is safe though.