Currently, the s3 client overwrites the the lastModified date on put and upload calls. The client should check if this field is explicitly set in the incoming metadata before defaulting to org.joda.time.DateTime.now().toDate. This would enable modified timestamp-based unit testing on s3 objects (e.g. letting test cases choose specific timestamps of objects they're storing to the client other than now()).
Currently, the s3 client overwrites the the
lastModified
date on put and upload calls. The client should check if this field is explicitly set in the incoming metadata before defaulting toorg.joda.time.DateTime.now().toDate
. This would enable modified timestamp-based unit testing on s3 objects (e.g. letting test cases choose specific timestamps of objects they're storing to the client other thannow()
).