From 34a2865b4a78fa4c18a8c77e6f12b52d731e397c Mon Sep 17 00:00:00 2001 From: Jesus Yepes Date: Fri, 26 Nov 2021 09:46:11 +0100 Subject: [PATCH] Log date setted using gmdate instead of a mysql now() expression. --- src/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Log.php b/src/Log.php index b63f1bb..bf0463a 100755 --- a/src/Log.php +++ b/src/Log.php @@ -70,7 +70,7 @@ static function l(array $oldAttributes, array $newAttributes, $event, $object, $ $model->event = $event->name; $model->object = $object; $model->user = $uid; - $model->date = new \yii\db\Expression('NOW()'); + $model->date = gmdate('Y-m-d h:i:s'); $model->object_id = $object_id; $model->save();