Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/parse/sfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Utc>::from_utc(
NaiveDateTime::from_timestamp_opt(63_072_000, 0)
NaiveDateTime::from_timestamp_opt(978_300_000, 0)
.unwrap(),
Utc,
) {
Expand Down