Skip to content

Commit 4199988

Browse files
sypharJoshua Nelson
and
Joshua Nelson
authored
add explaining comment about AWS S3 bug
Co-authored-by: Joshua Nelson <[email protected]>
1 parent e1fa704 commit 4199988

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/storage/s3.rs

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ impl S3Backend {
121121

122122
let date_updated = res
123123
.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.
124126
.map_or(Ok(Utc::now()), |lm| parse_timespec(&lm))?;
125127

126128
let compression = res.content_encoding.and_then(|s| s.parse().ok());

0 commit comments

Comments
 (0)