diff --git a/src/services/RecordRequest.php b/src/services/RecordRequest.php index 02a98c4..9c475e5 100644 --- a/src/services/RecordRequest.php +++ b/src/services/RecordRequest.php @@ -4,10 +4,10 @@ namespace matfish\ActivityLog\services; +use Carbon\Carbon; use Craft; use craft\web\Request; use craft\web\Response; -use matfish\ActivityLog\Plugin; use yii\base\Event; use matfish\ActivityLog\records\ActivityLog as ActivityLogRecord; use matfish\ActivityLog\models\ActivityLog as ActivityLogModel; @@ -73,6 +73,7 @@ public function record(): void $record->siteId = $model->siteId; $record->isAction = $model->isAction; $record->actionSegments = $model->actionSegments; + $record->createdAt = Carbon::now(); $record->save();