diff --git a/system/BaseModel.php b/system/BaseModel.php index a877ac924b08..a41be9816cac 100644 --- a/system/BaseModel.php +++ b/system/BaseModel.php @@ -1182,7 +1182,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); }