Skip to content

Commit 5d90405

Browse files
committed
fix: correctly record the datetime for last_active in case of change defaultLocale
1 parent b7b6720 commit 5d90405

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Authentication/Authenticators/AccessTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function recordActiveDate(): void
235235
);
236236
}
237237

238-
$this->user->last_active = Time::now();
238+
$this->user->last_active = Time::now()->format('Y-m-d H:i:s');
239239

240240
$this->provider->updateActiveDate($this->user);
241241
}

src/Authentication/Authenticators/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public function recordActiveDate(): void
856856
);
857857
}
858858

859-
$this->user->last_active = Time::now();
859+
$this->user->last_active = Time::now()->format('Y-m-d H:i:s');
860860

861861
$this->provider->updateActiveDate($this->user);
862862
}

0 commit comments

Comments
 (0)