This matches the S3 API format, which uses 8601 for the
object lock retain until date.
Fixes: https://tracker.ceph.com/issues/51327
Signed-off-by: Danny Abukalam <danny@softiron.com>
try {
decode(retention, iter->second);
dump_header(s, "x-amz-object-lock-mode", retention.get_mode());
- dump_time_header(s, "x-amz-object-lock-retain-until-date", retention.get_retain_until_date());
+ string date = ceph::to_iso_8601(retention.get_retain_until_date());
+ dump_header(s, "x-amz-object-lock-retain-until-date", date.c_str());
} catch (buffer::error& err) {
ldpp_dout(this, 0) << "ERROR: failed to decode RGWObjectRetention" << dendl;
}