diff --git a/system/BaseModel.php b/system/BaseModel.php index 888d89854f32..6f5b5262dae3 100644 --- a/system/BaseModel.php +++ b/system/BaseModel.php @@ -1180,7 +1180,7 @@ protected function doProtectFields(array $data): array */ protected function setDate(?int $userData = null) { - $currentDate = $userData ?? time(); + $currentDate = $userData ?? Time::now()->getTimestamp(); return $this->intToDate($currentDate); }