fix flash_message and Date format