Skip to content

Commit

Permalink
Adding more comments about the clock in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
umbernhard committed Dec 10, 2024
1 parent b1dbb99 commit 0ddaa4f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ public Instant lastLoginTime() {
* Updates the last login time to the current time.
*/
public void updateLastLoginTime() {
// If we're not testing, there will be no clock
if (my_clock == null) {
my_last_login_time = Instant.now();
} else {
Expand All @@ -226,6 +227,7 @@ public Instant lastLogoutTime() {
* Updates the last logout time to the current time.
*/
public void updateLastLogoutTime() {
// If we're not testing, there will be no clock
if (my_clock == null) {
my_last_logout_time = Instant.now();
} else {
Expand Down

0 comments on commit 0ddaa4f

Please sign in to comment.