Don't panic on vintage files (#33543)

Release Notes:

- remoting: Fix a crash on the remote side when encountering files from
before 1970.
This commit is contained in:
Conrad Irwin 2025-06-27 13:15:50 -06:00 committed by GitHub
parent c9ce4aec91
commit 14bb10d783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -632,7 +632,7 @@ impl From<Timestamp> for SystemTime {
impl From<SystemTime> for Timestamp {
fn from(time: SystemTime) -> Self {
let duration = time.duration_since(UNIX_EPOCH).unwrap();
let duration = time.duration_since(UNIX_EPOCH).unwrap_or_default();
Self {
seconds: duration.as_secs(),
nanos: duration.subsec_nanos(),