From 6bad4176455408ab9888e7e779110fd1f6981a6c Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 8 Jul 2020 20:20:30 +0200 Subject: [PATCH] Fix issue --- src/helpers/survey_helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()?