From f88ecbd9b338d406e8c7bef79c200947556e3f4b Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Wed, 11 Jan 2023 06:46:41 -0300 Subject: [PATCH] Fixed issue #18517: Survey editing : Survey creation date is wrong (#2821) Co-authored-by: lapiudevgit --- application/models/Survey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Survey.php b/application/models/Survey.php index 50a957d1cd8..3f2a750f863 100755 --- a/application/models/Survey.php +++ b/application/models/Survey.php @@ -493,7 +493,7 @@ public function rules() array('sid', 'numerical', 'integerOnly' => true,'min' => 1), // max ? array('sid', 'unique'),// Not in pk array('gsid', 'numerical', 'integerOnly' => true), - array('datecreated', 'default', 'value' => date("Y-m-d H:m:s")), + array('datecreated', 'default', 'value' => date("Y-m-d H:i:s")), array('startdate', 'default', 'value' => null), array('expires', 'default', 'value' => null), array('admin', 'LSYii_Validators'),