aboutsummaryrefslogtreecommitdiff
path: root/object_iterator.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2026-11-10 18:03:37 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2026-11-10 18:03:51 +0100
commit0738cfbbdbbf898d9e864970924e59d0a2af45e3 (patch)
treefaf2d31bf4438fcf25c9f50f5b87b0d14e65902a /object_iterator.go
parent537dbec6f63eff137a582dc4e8e7a06d20083237 (diff)
downloadgo-schwift-0738cfbbdbbf898d9e864970924e59d0a2af45e3.tar.gz
Fix that Ceph Swift API emulation contains timezone
Diffstat (limited to 'object_iterator.go')
-rw-r--r--object_iterator.go2
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())