From 90b337a3e84189f4b243b93d3f55b7d31a802e59 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Tue, 17 Mar 2015 00:47:17 -0700 Subject: [PATCH] Fixing order of input and layout in time.Parse --- pkg/storage/encoded/encoded.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/encoded/encoded.go b/pkg/storage/encoded/encoded.go index 04d3f7eee..82f82f7e4 100644 --- a/pkg/storage/encoded/encoded.go +++ b/pkg/storage/encoded/encoded.go @@ -205,7 +205,7 @@ func (diskStorage StorageDriver) GetObjectMetadata(bucket, key string, prefix st if err != nil { return storage.ObjectMetadata{}, err } - created, err := time.Parse(metadata["created"], time.RFC3339Nano) + created, err := time.Parse(time.RFC3339Nano, metadata["created"]) size, err := strconv.ParseInt(metadata["size"], 10, 64) objectMetadata := storage.ObjectMetadata{ Bucket: bucket,