mirror of
https://github.com/alexedwards/scs.git
synced 2025-07-17 01:12:21 +02:00
Always use UTC time
This commit is contained in:
2
data.go
2
data.go
@ -118,7 +118,7 @@ func (s *SessionManager) Commit(ctx context.Context) (string, time.Time, error)
|
|||||||
|
|
||||||
expiry := sd.deadline
|
expiry := sd.deadline
|
||||||
if s.IdleTimeout > 0 {
|
if s.IdleTimeout > 0 {
|
||||||
ie := time.Now().Add(s.IdleTimeout)
|
ie := time.Now().Add(s.IdleTimeout).UTC()
|
||||||
if ie.Before(expiry) {
|
if ie.Before(expiry) {
|
||||||
expiry = ie
|
expiry = ie
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user