]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
d4n/filter: Update `creationTime` calculation
authorSamarah <samarah.uriarte@ibm.com>
Wed, 20 Dec 2023 20:11:12 +0000 (20:11 +0000)
committerPritha Srivastava <prsrivas@redhat.com>
Tue, 2 Apr 2024 15:54:52 +0000 (21:24 +0530)
Signed-off-by: Samarah <samarah.uriarte@ibm.com>
src/rgw/driver/d4n/rgw_sal_d4n.cc

index 10cfdc71feb3ce0a44cf81d2a1f5a7bbf8490ef8..e80f1d9c14f09283f6fd3d41a39ddb36d6f2a22b 100644 (file)
@@ -673,7 +673,10 @@ int D4NFilterObject::D4NFilterReadOp::D4NFilterGetCB::handle_data(bufferlist& bl
     block.hostsList.push_back(blockDir->cct->_conf->rgw_local_cache_address); 
     block.cacheObj.objName = source->get_key().get_oid();
     block.cacheObj.bucketName = source->get_bucket()->get_name();
-    block.cacheObj.creationTime = to_iso_8601(source->get_mtime()); 
+    std::stringstream s;
+    utime_t ut(source->get_mtime());
+    ut.gmtime(s);
+    block.cacheObj.creationTime = s.str(); 
     block.cacheObj.dirty = false;
 
     //populating fields needed for building directory index