aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2020-06-19 08:49:00 -0700
committerGitHub <noreply@github.com>2020-06-19 08:49:00 -0700
commit0e7c1a300bdbedd470dd7d80276231a86ef97e27 (patch)
tree181242651da141a65ecef26e02248fbef9b0ac88
parent546709c1dec6a97d150034c790a7a8d823cb6dd9 (diff)
parent320d70d305ccf9b5009f5dacc1542451022e79b5 (diff)
downloadseaweedfs-0e7c1a300bdbedd470dd7d80276231a86ef97e27.tar.xz
seaweedfs-0e7c1a300bdbedd470dd7d80276231a86ef97e27.zip
Merge pull request #1363 from DXist/fix_utc
Return last modified in UTC
-rw-r--r--weed/s3api/s3api_objects_list_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go
index 086b9acd3..919e6230a 100644
--- a/weed/s3api/s3api_objects_list_handlers.go
+++ b/weed/s3api/s3api_objects_list_handlers.go
@@ -138,7 +138,7 @@ func (s3a *S3ApiServer) listFilerEntries(bucket, originalPrefix string, maxKeys
} else {
contents = append(contents, ListEntry{
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) + "\"",
Size: int64(filer2.TotalSize(entry.Chunks)),
Owner: CanonicalUser{