midgetspy/Sick-Beard — pull request #267 by lueo (2011-12-31 18:56:00+00:00)
Title: Using numbers for the date format used in logging.

I am using a Traditional Chinese Window 7 system. When I click on the "View Log" button on the web interface, it shows the following errors:
"UnicodeDecodeError: 'utf8' codec can't decode byte 0xa4 in position 0: invalid start byte ...."

After debugging, I found that the filehandler of logger.py use "%b-%d" as date format. In Asian country, "%b" shows like "一月", and it saves as local codepage while other messages are utf-8 string. Thus when webserver.py tried to read it back as utf-8, it just failed.

I also changed the date format of logger to default python style (only numbers), so that webserver.py could read it in a more universal way. Otherwise the "View Log" page will be blank since the regular expression can't match anything ("Jan-01" becomes "一月-01", then match failed).