Fix created/createdAt date formatting issue