Fix date formatting error