From: Sage Weil Date: Mon, 29 Apr 2019 19:26:00 +0000 (-0500) Subject: mon/MonMap: dump timestamps in UTC X-Git-Tag: v15.1.0~2616^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7eb971e93c09ef6e57c2d1ddf63e8af459a7df33;p=ceph.git mon/MonMap: dump timestamps in UTC Signed-off-by: Sage Weil --- diff --git a/src/mon/MonMap.cc b/src/mon/MonMap.cc index ca9476c556aa..849349968a7a 100644 --- a/src/mon/MonMap.cc +++ b/src/mon/MonMap.cc @@ -331,8 +331,8 @@ void MonMap::dump(Formatter *f) const { f->dump_unsigned("epoch", epoch); f->dump_stream("fsid") << fsid; - f->dump_stream("modified") << last_changed; - f->dump_stream("created") << created; + last_changed.gmtime(f->dump_stream("modified")); + created.gmtime(f->dump_stream("created")); f->dump_unsigned("min_mon_release", ceph::to_integer(min_mon_release)); f->dump_string("min_mon_release_name", ceph::to_string(min_mon_release)); f->open_object_section("features");