remove UTC from some not store related operations

This commit is contained in:
Pascal Fischer
2023-04-10 10:54:23 +02:00
parent 489892553a
commit 6aba28ccb7
14 changed files with 24 additions and 24 deletions

View File

@@ -144,7 +144,7 @@ func (p *Peer) LoginExpired(expiresIn time.Duration) (bool, time.Duration) {
return false, 0
}
expiresAt := p.LastLogin.Add(expiresIn)
now := time.Now().UTC()
now := time.Now()
timeLeft := expiresAt.Sub(now)
return timeLeft <= 0, timeLeft
}