Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
'Date' must be at midnight GMT (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu authored and TheM0ng00se committed Oct 18, 2018
1 parent 453e3af commit 9e02ad7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cinq_auditor_required_tags/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def delete_s3_bucket(client, resource):
'NoncurrentVersionExpiration': {u'NoncurrentDays': 1},
'Filter': {u'Prefix': ''},
'Expiration': {
'Date': datetime.utcnow() + timedelta(days=days_until_expiry)
'Date': datetime.utcnow().replace(
hour=0, minute=0, second=0, microsecond=0
) + timedelta(days=days_until_expiry)
},
'AbortIncompleteMultipartUpload': {u'DaysAfterInitiation': 3},
'ID': 'cloudInquisitor'}
Expand Down

0 comments on commit 9e02ad7

Please sign in to comment.