We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df7bb5c + 4199988 commit 48444efCopy full SHA for 48444ef
src/storage/s3.rs
@@ -119,7 +119,12 @@ impl S3Backend {
119
content.write_all(data.as_ref())?;
120
}
121
122
- let date_updated = parse_timespec(&res.last_modified.unwrap())?;
+ let date_updated = res
123
+ .last_modified
124
+ // This is a bug from AWS, it should always have a modified date of when it was created if nothing else.
125
+ // Workaround it by passing now as the modification time, since the exact time doesn't really matter.
126
+ .map_or(Ok(Utc::now()), |lm| parse_timespec(&lm))?;
127
+
128
let compression = res.content_encoding.and_then(|s| s.parse().ok());
129
130
Ok(Blob {
0 commit comments