Merge pull request #27617 from cbodley/wip-39295

rgw: bucket stats report mtime in UTC

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
This commit is contained in:
J. Eric Ivancich 2019-04-25 18:14:59 -04:00 committed by GitHub
commit a553edbb4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1452,7 +1452,7 @@ static int bucket_stats(RGWRados *store, const std::string& tenant_name, std::st
::encode_json("owner", bucket_info.owner, formatter);
formatter->dump_string("ver", bucket_ver);
formatter->dump_string("master_ver", master_ver);
formatter->dump_stream("mtime") << ut;
ut.gmtime(formatter->dump_stream("mtime"));
formatter->dump_string("max_marker", max_marker);
dump_bucket_usage(stats, formatter);
encode_json("bucket_quota", bucket_info.quota, formatter);