Fix wrong mysql date format cause fatal error when MySQL strict mode enabled