#3306 - Fix S3 creation date for AWS Java SDK

This commit is contained in:
Bert Blommers 2020-09-19 20:12:11 +01:00
parent cc0bd5213f
commit 8c94893869
2 changed files with 5 additions and 1 deletions

View File

@ -788,6 +788,10 @@ class FakeBucket(CloudFormationModel):
def location(self):
return self.region_name
@property
def creation_date_ISO8601(self):
return iso_8601_datetime_without_milliseconds_s3(self.creation_date)
@property
def is_versioned(self):
return self.versioning_status == "Enabled"

View File

@ -1755,7 +1755,7 @@ S3_ALL_BUCKETS = """<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2
{% for bucket in buckets %}
<Bucket>
<Name>{{ bucket.name }}</Name>
<CreationDate>{{ bucket.creation_date.isoformat() }}</CreationDate>
<CreationDate>{{ bucket.creation_date_ISO8601 }}</CreationDate>
</Bucket>
{% endfor %}
</Buckets>