Fix some donut TODO's regarding bucket created date

This commit is contained in:
Harshavardhana
2015-05-21 10:57:38 -07:00
parent 39dac2afac
commit ad60b97d52
4 changed files with 27 additions and 24 deletions

View File

@@ -134,11 +134,14 @@ func (d donutDriver) ListBuckets() (results []drivers.BucketMetadata, err error)
if err != nil {
return nil, err
}
for _, name := range buckets {
for name, metadata := range buckets {
created, err := time.Parse(time.RFC3339Nano, metadata["created"])
if err != nil {
return nil, iodine.New(err, nil)
}
result := drivers.BucketMetadata{
Name: name,
// TODO Add real created date
Created: time.Now().UTC(),
Name: name,
Created: created,
}
results = append(results, result)
}