forked from Mirrors/oauth2
google: Make sure time is always in UTC
This commit is contained in:
parent
9bb904979d
commit
3ff51b34f5
|
@ -14,7 +14,9 @@ import (
|
|||
)
|
||||
|
||||
// now aliases time.Now for testing
|
||||
var now = time.Now
|
||||
var now = func() time.Time {
|
||||
return time.Now().UTC()
|
||||
}
|
||||
|
||||
// Config stores the configuration for fetching tokens with external credentials.
|
||||
type Config struct {
|
||||
|
|
Loading…
Reference in New Issue