Skip to content

Commit

Permalink
Use correct date for created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Mar 16, 2024
1 parent 465ddc2 commit 5c329db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Scanner {
fs.created_at = file
.metadata()
.ok()
.and_then(|x| x.modified().ok())
.and_then(|x| x.created().ok())
.map(|x| Into::<DateTime<Utc>>::into(x));

fs.modified_at = file
Expand Down

0 comments on commit 5c329db

Please sign in to comment.