Skip to content

Commit

Permalink
fix: passing Time to Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 9, 2024
1 parent cf646b8 commit 34d8722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function updateActiveDate(User $user): void
assert($user->last_active instanceof Time);

// Safe date string for database
$last_active = $user->last_active;
$last_active = $this->timeToDate($user->last_active);

$this->builder()
->set('last_active', $last_active)
Expand Down

0 comments on commit 34d8722

Please sign in to comment.