Fix incorrect date type