]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: bucket stats report mtime in UTC
authorCasey Bodley <cbodley@redhat.com>
Tue, 16 Apr 2019 17:10:42 +0000 (13:10 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 16 Apr 2019 17:10:44 +0000 (13:10 -0400)
Fixes: https://tracker.ceph.com/issues/39295
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_bucket.cc

index 1c786a32a6c2901570973bd3ff734a97aaa641c6..811748e9f6bb15b90950dc7841766987439bbad1 100644 (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);