s3cmd ls fails because of date format

Asked by Rainer Toebbicke

"s3cmd ls" fails against swift's S3 interface with
  An unexpected error has occurred.
  Please report the following lines to:
   <email address hidden>

Problem: ValueError: time data '2011-08-30T13:37:32.852790' does not match format '%Y-%m-%dT%H:%M:%S.000Z'

Indeed, BucketController.GET in swift3.py preparing the ListBucketResult response returns the LastModified tag with the date in native format, not the expected xxxxxZ format.

I suggest to simply add a Z to the date, in swift3.py the corresponding line in BucketController.GET would then read


instead of


Question information

English Edit question
OpenStack Object Storage (swift) Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Chuck Thier (cthier) said :

Hi Rainer,

Thanks for reporting this issue. I have pushed a change to trunk and will be part of the next release.


Can you help with this problem?

Provide an answer of your own, or ask Rainer Toebbicke for more information if necessary.

To post a message you must log in.