Fixes a date formatting issue