diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 1c786a32a6c..811748e9f6b 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -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);