Return None on mtime overflow
This commit is contained in:
parent
3aa55b07b7
commit
a5422167cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1909,7 +1909,7 @@ impl ItemMetadata {
|
|||
Self::Path { metadata, .. } => metadata.modified().ok(),
|
||||
#[cfg(feature = "gvfs")]
|
||||
Self::GvfsPath { mtime, .. } => {
|
||||
Some(SystemTime::UNIX_EPOCH + Duration::from_secs(*mtime))
|
||||
SystemTime::UNIX_EPOCH.checked_add(Duration::from_secs(*mtime))
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue