Fixed the date parsing.

It was 100% broken before and I didn’t notice it. Sorry!