mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
Merge pull request #31887 from ofriedma/wip-ofriedma-lc-hdr-mid
rgw: LC expiration header should present midnight expiration date Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
commit
e0743af281
@ -1656,7 +1656,7 @@ std::string s3_expiration_header(
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user