mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -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:
@@ -19,7 +19,6 @@ package cmd
|
||||
import (
|
||||
"net/url"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/minio/minio/pkg/disk"
|
||||
)
|
||||
@@ -63,7 +62,7 @@ func createTestStorageServer(t *testing.T) *testStorageRPCServer {
|
||||
stServer := &storageServer{
|
||||
storage: storageDisks[0],
|
||||
path: "/disk1",
|
||||
timestamp: time.Now().UTC(),
|
||||
timestamp: UTCNow(),
|
||||
}
|
||||
return &testStorageRPCServer{
|
||||
token: token,
|
||||
|
||||
Reference in New Issue
Block a user