Fix Proper date change ordinal to datetime

+ change sql statement for easier reading

fixes mr-orange/Sick-Beard#566
Merge pull request #571 from itofzo/fix_proper_date_change_ordinal_datetime_PIS

Fix Proper date change ordinal to datetime