diff --git a/src/helpers/survey_helper.rs b/src/helpers/survey_helper.rs index 2f85b29..2f6adf3 100644 --- a/src/helpers/survey_helper.rs +++ b/src/helpers/survey_helper.rs @@ -15,7 +15,7 @@ pub fn create(survey: &NewSurvey) -> ResultBoxError { let survey_id = database::InsertQuery::new(SURVEY_INFO_TABLE) .add_user_id("ID_utilisateurs", &survey.user_id) .add_u64("ID_texte", survey.post_id) - .add_u64("date_creation", time()) + .add_str("date_creation", &mysql_date()) .add_str("question", survey.question.as_str()) .add_legacy_bool("allow_new_choices", survey.allow_new_choices) .insert()?