Merge pull request #3326 from bblommers/bugfix/3306
Fix S3 creation date for AWS Java SDK
This commit is contained in:
commit
d54eafa420
@ -791,6 +791,10 @@ class FakeBucket(CloudFormationModel):
|
|||||||
def location(self):
|
def location(self):
|
||||||
return self.region_name
|
return self.region_name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def creation_date_ISO8601(self):
|
||||||
|
return iso_8601_datetime_without_milliseconds_s3(self.creation_date)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_versioned(self):
|
def is_versioned(self):
|
||||||
return self.versioning_status == "Enabled"
|
return self.versioning_status == "Enabled"
|
||||||
|
@ -1761,7 +1761,7 @@ S3_ALL_BUCKETS = """<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2
|
|||||||
{% for bucket in buckets %}
|
{% for bucket in buckets %}
|
||||||
<Bucket>
|
<Bucket>
|
||||||
<Name>{{ bucket.name }}</Name>
|
<Name>{{ bucket.name }}</Name>
|
||||||
<CreationDate>{{ bucket.creation_date.isoformat() }}</CreationDate>
|
<CreationDate>{{ bucket.creation_date_ISO8601 }}</CreationDate>
|
||||||
</Bucket>
|
</Bucket>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</Buckets>
|
</Buckets>
|
||||||
|
Loading…
Reference in New Issue
Block a user