Fixes date weirdness.