diff --git a/Cargo.toml b/Cargo.toml index b542d10..21ca753 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sherlog" -version = "0.9.2" +version = "0.9.3" authors = ["Benjamin Richner"] edition = "2021" license = "GPL-3.0-only" diff --git a/src/parse/sfile.rs b/src/parse/sfile.rs index d1d5a2b..9a583b7 100644 --- a/src/parse/sfile.rs +++ b/src/parse/sfile.rs @@ -477,12 +477,12 @@ fn adjust_sensor_timestamps(source: &mut model::LogSource) { } else { if let Some(correction) = &active_correction { if *session_id == correction.session_id { - // Timestamps before 01-01-72 00:00:00.000000 are not realistic because the device did not exist back then. + // Timestamps before 01-01-2001 00:00:00.000000 are not realistic because the device did not exist back then. // We can safely assume that these are relative timestamps that are not yet corrected with EtherCAT time. // It is also reasonable to assume that a device receives its EtherCAT time within 2 years (or never). if entry.timestamp < DateTime::::from_utc( - NaiveDateTime::from_timestamp_opt(63_072_000, 0) + NaiveDateTime::from_timestamp_opt(978_300_000, 0) .unwrap(), Utc, ) {