]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix time format that is sent to elasticsearch
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 7 Apr 2017 22:31:40 +0000 (15:31 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 30 May 2017 20:26:53 +0000 (13:26 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_es_query.cc

index 4f673fb3297d43824cdde589a31c5258e925683d..9a36cbc0d0f15e8cfe0571f3bc06608cd5fed3d2 100644 (file)
@@ -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);
   }
 };