Skip to content

Commit

Permalink
Log date setted using gmdate instead of a mysql now() expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
yepes committed Nov 26, 2021
1 parent a0647b9 commit 34a2865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

1 comment on commit 34a2865

@vercel
Copy link

@vercel vercel bot commented on 34a2865 Nov 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.