fix(timezone): the timezone is standardized to UTC

Signed-off-by: cndoit18 <cndoit18@outlook.com>
This commit is contained in:
cndoit18
2021-06-03 13:43:11 +08:00
parent d541872f9a
commit 51717256f9
9 changed files with 15 additions and 15 deletions

View File

@@ -72,7 +72,7 @@ func TestBootstrapTokenAuth(t *testing.T) {
bootstrapapi.BootstrapTokenUsageAuthentication: []byte("true"),
},
}
tokenExpiredTime := time.Now().Add(-time.Hour).Format(time.RFC3339)
tokenExpiredTime := time.Now().UTC().Add(-time.Hour).Format(time.RFC3339)
var expiredBootstrapToken = &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Namespace: metav1.NamespaceSystem,