Browse Source
Merge pull request #1363 from DXist/fix_utc
Return last modified in UTC
pull/1371/head
Chris Lu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
weed/s3api/s3api_objects_list_handlers.go
|
@ -138,7 +138,7 @@ func (s3a *S3ApiServer) listFilerEntries(bucket, originalPrefix string, maxKeys |
|
|
} else { |
|
|
} else { |
|
|
contents = append(contents, ListEntry{ |
|
|
contents = append(contents, ListEntry{ |
|
|
Key: fmt.Sprintf("%s%s", dir, entry.Name), |
|
|
Key: fmt.Sprintf("%s%s", dir, entry.Name), |
|
|
LastModified: time.Unix(entry.Attributes.Mtime, 0), |
|
|
|
|
|
|
|
|
LastModified: time.Unix(entry.Attributes.Mtime, 0).UTC(), |
|
|
ETag: "\"" + filer2.ETag(entry) + "\"", |
|
|
ETag: "\"" + filer2.ETag(entry) + "\"", |
|
|
Size: int64(filer2.TotalSize(entry.Chunks)), |
|
|
Size: int64(filer2.TotalSize(entry.Chunks)), |
|
|
Owner: CanonicalUser{ |
|
|
Owner: CanonicalUser{ |
|
|