Fix date formatting for Safari