From 46c3e48ef3b411e8aa2c182c950478957c501a70 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 8 May 2013 16:26:55 -0700 Subject: [PATCH] ceph_json: dump timestamp in utc Signed-off-by: Yehuda Sadeh --- src/common/ceph_json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ceph_json.cc b/src/common/ceph_json.cc index 4a6c1ea58e02a..e5fc48a74f8b5 100644 --- a/src/common/ceph_json.cc +++ b/src/common/ceph_json.cc @@ -475,7 +475,7 @@ void encode_json(const char *name, long long val, Formatter *f) void encode_json(const char *name, const utime_t& val, Formatter *f) { - f->dump_stream(name) << val; + val.gmtime(f->dump_stream(name)); } void encode_json(const char *name, const bufferlist& bl, Formatter *f) -- 2.39.5