Fixing order of input and layout in time.Parse
This commit is contained in:
parent
25725c442a
commit
90b337a3e8
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ func (diskStorage StorageDriver) GetObjectMetadata(bucket, key string, prefix st
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return storage.ObjectMetadata{}, err
|
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)
|
size, err := strconv.ParseInt(metadata["size"], 10, 64)
|
||||||
objectMetadata := storage.ObjectMetadata{
|
objectMetadata := storage.ObjectMetadata{
|
||||||
Bucket: bucket,
|
Bucket: bucket,
|
||||||
|
|
Loading…
Reference in a new issue