mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
Add UTCNow() function. (#3931)
This patch adds UTCNow() function which returns current UTC time. This is equivalent of UTCNow() == time.Now().UTC()
This commit is contained in:
@@ -438,8 +438,8 @@ func generateTestCert(host string) error {
|
||||
Subject: pkix.Name{
|
||||
Organization: []string{"Minio Test Cert"},
|
||||
},
|
||||
NotBefore: time.Now().UTC(),
|
||||
NotAfter: time.Now().UTC().Add(time.Minute * 1),
|
||||
NotBefore: UTCNow(),
|
||||
NotAfter: UTCNow().Add(time.Minute * 1),
|
||||
|
||||
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature,
|
||||
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth},
|
||||
|
||||
Reference in New Issue
Block a user