fix: List buckets response should return UTC modtime (#5004)

This commit is contained in:
A. Elleuch
2017-10-03 18:34:51 +01:00
committed by Dee Koder
parent 60cc6184d2
commit a4f26aec00
2 changed files with 34 additions and 4 deletions

View File

@@ -307,7 +307,7 @@ func generateListBucketsResponse(buckets []BucketInfo) ListBucketsResponse {
for _, bucket := range buckets {
var listbucket = Bucket{}
listbucket.Name = bucket.Name
listbucket.CreationDate = bucket.Created.Format(timeFormatAMZLong)
listbucket.CreationDate = bucket.Created.UTC().Format(timeFormatAMZLong)
listbucket.HealBucketInfo = bucket.HealBucketInfo
listbuckets = append(listbuckets, listbucket)
}