From: Yehuda Sadeh Date: Fri, 7 Apr 2017 22:31:40 +0000 (-0700) Subject: rgw: fix time format that is sent to elasticsearch X-Git-Tag: ses5-milestone6~9^2~3^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4a91a542e93955735a0ff715e650ad4ff46f27a5;p=ceph.git rgw: fix time format that is sent to elasticsearch Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_es_query.cc b/src/rgw/rgw_es_query.cc index 4f673fb3297d..9a36cbc0d0f1 100644 --- a/src/rgw/rgw_es_query.cc +++ b/src/rgw/rgw_es_query.cc @@ -213,8 +213,9 @@ public: return true; } void encode_json(const string& field, Formatter *f) const { - utime_t ut(val); - ::encode_json(field.c_str(), ut, f); + string s; + rgw_to_iso8601(val, &s); + ::encode_json(field.c_str(), s, f); } };