Skip to content

Commit

Permalink
refactor: replace time() with Time
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 6, 2022
1 parent 4a748b9 commit 4b7a916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b7a916

Please sign in to comment.