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 7, 2022
1 parent ae80474 commit 22fadc4
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 @@ -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);
}
Expand Down

0 comments on commit 22fadc4

Please sign in to comment.