Fixed date normalisation bug from issues #3.