google: Make sure time is always in UTC

This commit is contained in:
Ryan Kohler 2021-03-11 07:12:05 -08:00
parent 9bb904979d
commit 3ff51b34f5
1 changed files with 3 additions and 1 deletions

View File

@ -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 {