Use UTC date in TestCachedBandwidthMonthRollover (#2684)

This commit is contained in:
ethanadams 2019-08-01 11:30:04 -04:00 committed by GitHub
parent 1944510649
commit b74d4198f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func TestCachedBandwidthMonthRollover(t *testing.T) {
satellite0 := testidentity.MustPregeneratedSignedIdentity(0, storj.LatestIDVersion()).ID
y, m, _ := time.Now().Date()
y, m, _ := time.Now().UTC().Date()
// Last second of the previous month
previousMonth := time.Date(y, m, 0, 23, 59, 59, 0, time.Now().UTC().Location())