Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cba8f88c1 |
+1
-3
@@ -130,9 +130,7 @@ pub async fn index_file(
|
|||||||
.modified()
|
.modified()
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|t| {
|
.and_then(|t| {
|
||||||
let duration = t
|
let duration = t.duration_since(std::time::UNIX_EPOCH).unwrap_or_default();
|
||||||
.duration_since(std::time::UNIX_EPOCH)
|
|
||||||
.unwrap_or_default();
|
|
||||||
chrono::DateTime::from_timestamp(duration.as_secs() as i64, 0)
|
chrono::DateTime::from_timestamp(duration.as_secs() as i64, 0)
|
||||||
})
|
})
|
||||||
.map(|dt| dt.naive_utc())
|
.map(|dt| dt.naive_utc())
|
||||||
|
|||||||
Reference in New Issue
Block a user