correct date normalization

(would have been easy to write a test for this)