Open GoogleCodeExporter opened 9 years ago
This issue is described in https://github.com/boto/boto/issues/466
TL;DR: S3 API calls return the last_modified timestamp in different formats.
Fix is to use boto.utils.parse_ts(), which can handle both formats:
https://github.com/boto/boto/blob/44d873d97bb08a09832b21dcaa0b2d47fe59411b/boto/
utils.py#L460
https://code.google.com/p/pyfilesystem/source/browse/trunk/fs/s3fs.py#584
should be converted to:
if hasattr(key, "last_modified"):
try:
info['modified_time'] = parse_ts(key.last_modified)
except ValueError:
pass
PS. the _get_key_info() contains some source formatting errors and calls a
missing method... Maybe fix those at the same go.
Original comment by j...@kruu.org
on 8 Nov 2014 at 2:41
Original issue reported on code.google.com by
yubiz...@gmail.com
on 14 Nov 2011 at 10:09