From: <lu...@us...> - 2009-05-28 03:02:33
|
Revision: 392 http://s3tools.svn.sourceforge.net/s3tools/?rev=392&view=rev Author: ludvigm Date: 2009-05-28 03:02:28 +0000 (Thu, 28 May 2009) Log Message: ----------- * S3/Utils.py (dateS3toPython): Be more relaxed about timestamps format. Modified Paths: -------------- s3cmd/trunk/ChangeLog s3cmd/trunk/S3/Utils.py Modified: s3cmd/trunk/ChangeLog =================================================================== --- s3cmd/trunk/ChangeLog 2009-05-27 14:08:05 UTC (rev 391) +++ s3cmd/trunk/ChangeLog 2009-05-28 03:02:28 UTC (rev 392) @@ -1,5 +1,10 @@ 2009-05-28 Michal Ludvig <mi...@lo...> + * S3/Utils.py (dateS3toPython): Be more relaxed about + timestamps format. + +2009-05-28 Michal Ludvig <mi...@lo...> + * s3cmd, run-test.py, TODO, NEWS: Added --dry-run and --exclude/--include for [setacl]. * s3cmd, run-test.py, TODO, NEWS: Added --dry-run Modified: s3cmd/trunk/S3/Utils.py =================================================================== --- s3cmd/trunk/S3/Utils.py 2009-05-27 14:08:05 UTC (rev 391) +++ s3cmd/trunk/S3/Utils.py 2009-05-28 03:02:28 UTC (rev 392) @@ -107,7 +107,7 @@ parent.append(xmlTextNode(tag_name, text)) def dateS3toPython(date): - date = re.compile("\.\d\d\dZ").sub(".000Z", date) + date = re.compile("(\.\d*)?Z").sub(".000Z", date) return time.strptime(date, "%Y-%m-%dT%H:%M:%S.000Z") def dateS3toUnix(date): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |