can someone please advise  here-

I am using the S3 service on the latest localstack version,and using the Amazon's S3 Java SDK to perform all the operations with Java 8 (Additional configuration info : aws-sdk-java/1.11.542 Windows_10/10.0 Java_HotSpot(TM)_64-Bit_Server_VM/25.60-b23 java/1.8.0_60 scala/2.10.5 groovy/2.4.10 vendor/Oracle_Corporation)

Although creating a new bucket seems to working as expected, retrieving the buckets via list buckets operation throws the following exception through the SDK:
```
 java.lang.IllegalArgumentException: Invalid format: "2019-12-23 05:12:26.039447" is malformed at " 05:12:26.039447"). Response Code: 200, Response Text: OK

response-

<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01"><Owner><ID>bcaf1ffd86f41161ca5fb16fd081034f</ID><DisplayName>webfile</DisplayName></Owner><Buckets><Bucket><Name>tst-adapter-us-west-2</Name><CreationDate>2019-12-23 02:17:43.014814</CreationDate></Bucket></Buckets></ListAllMyBucketsResult>

trace-

Caused by:
        java.lang.IllegalArgumentException: Invalid format: "2019-12-23 05:12:26.039447" is malformed at " 05:12:26.039447"
            at org.joda.time.format.DateTimeParserBucket.doParseMillis(DateTimeParserBucket.java:187)
            at org.joda.time.format.DateTimeFormatter.parseMillis(DateTimeFormatter.java:826)
            at com.amazonaws.util.DateUtils.doParseISO8601Date(DateUtils.java:98)
            at com.amazonaws.util.DateUtils.parseISO8601Date(DateUtils.java:77)
            at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListAllMyBucketsHandler.doEndElement(XmlResponsesSaxParser.java:996)
            at com.amazonaws.services.s3.model.transform.AbstractHandler.endElement(AbstractHandler.java:52)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
            at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
            at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
            at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
            at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
            at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
            at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseXmlInputStream(XmlResponsesSaxParser.java:152)
            ... 31 more
```
bucket_name = normalize_bucket_name(bucket_name)
    cors = BUCKET_CORS.get(bucket_name)
    if not cors:
        return
    origin = request_headers.get('Origin', '')
    rules = cors['CORSConfiguration']['CORSRule']
    if not isinstance(rules, list):
        rules = [rules]
    for rule in rules:
        
        allowed_methods = rule.get('AllowedMethod', [])
        if request_method in allowed_methods:
            allowed_origins = rule.get('AllowedOrigin', [])
            for allowed in allowed_origins:
                if origin in allowed or re.match(allowed.replace('*', '.*'), origin):
                    response.headers['Access-Control-Allow-Origin'] = origin
                    if 'ExposeHeader' in rule:
                        expose_headers = rule['ExposeHeader']
                        response.headers['Access-Control-Expose-Headers'] = \
                            ','.join(expose_headers) if isinstance(expose_headers, list) else expose_headers
                    break
def append_last_modified_headers(response, content=None):