Skip to content

Commit

Permalink
google: Make sure time is always in UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
ScruffyProdigy committed Mar 11, 2021
1 parent 9bb9049 commit 3ff51b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google/internal/externalaccount/basecredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ff51b3

Please sign in to comment.