diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2026-11-10 18:03:37 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2026-11-10 18:03:51 +0100 |
| commit | 0738cfbbdbbf898d9e864970924e59d0a2af45e3 (patch) | |
| tree | faf2d31bf4438fcf25c9f50f5b87b0d14e65902a /object_iterator.go | |
| parent | 537dbec6f63eff137a582dc4e8e7a06d20083237 (diff) | |
| download | go-schwift-0738cfbbdbbf898d9e864970924e59d0a2af45e3.tar.gz | |
Fix that Ceph Swift API emulation contains timezone
Diffstat (limited to 'object_iterator.go')
| -rw-r--r-- | object_iterator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/object_iterator.go b/object_iterator.go index ae4c896..5e5570b 100644 --- a/object_iterator.go +++ b/object_iterator.go @@ -138,7 +138,7 @@ func (i *ObjectIterator) NextPageDetailed(ctx context.Context, limit int) ([]Obj result[idx].ContentType = data.ContentType result[idx].Etag = data.Etag result[idx].SizeBytes = data.SizeBytes - result[idx].LastModified, err = time.Parse(time.RFC3339Nano, data.LastModifiedStr+"Z") + result[idx].LastModified, err = parseSwiftLastModified(data.LastModifiedStr) if err != nil { // this error is sufficiently obscure that we don't need to expose a type for it return nil, fmt.Errorf("bad field objects[%d].last_modified: %s", idx, err.Error()) |
