1
0
mirror of https://github.com/alexedwards/scs.git synced 2025-07-15 01:04:36 +02:00

Always use UTC time

This commit is contained in:
Lauris BH
2019-11-26 14:19:14 +02:00
committed by GitHub
parent a8e637b039
commit 215908eee0

View File

@ -118,7 +118,7 @@ func (s *SessionManager) Commit(ctx context.Context) (string, time.Time, error)
expiry := sd.deadline
if s.IdleTimeout > 0 {
ie := time.Now().Add(s.IdleTimeout)
ie := time.Now().Add(s.IdleTimeout).UTC()
if ie.Before(expiry) {
expiry = ie
}