From 22fadc496cfef08965122ce9c0cc1de25b847add Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 7 Nov 2022 08:13:27 +0900 Subject: [PATCH] refactor: replace time() with Time --- system/BaseModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }