fixes date formatting