Skip to content

Commit

Permalink
Changes time to UTC for LastLogin.
Browse files Browse the repository at this point in the history
  • Loading branch information
anvial committed Jan 18, 2024
1 parent 4cd6dc2 commit 1712145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/user/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ WHERE user_uuid = $M.uuid
return errors.Annotatef(usererrors.NotFound, "%q", uuid)
}

query := tx.Query(ctx, updateLastLoginStmt, sqlair.M{"uuid": uuid.String(), "last_login": time.Now()})
query := tx.Query(ctx, updateLastLoginStmt, sqlair.M{"uuid": uuid.String(), "last_login": time.Now().UTC()})
err = query.Run()
if err != nil {
return errors.Annotatef(err, "updating last login for user with uuid %q", uuid)
Expand Down

0 comments on commit 1712145

Please sign in to comment.