According to this one the expiration date should be midnight.
In obj_has_expired() it already does it but the expiration header is still not midnight
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions
if (rule_expiration.has_days()) {
rule_expiration_date =
boost::optional<ceph::real_time>(
- mtime + make_timespan(rule_expiration.get_days()*24*60*60));
+ mtime + make_timespan(rule_expiration.get_days()*24*60*60 - ceph::real_clock::to_time_t(mtime)%(24*60*60) + 24*60*60));
}
}