From f3e62dcbd0e09fb69b706f3ce7b4ab316426b97a Mon Sep 17 00:00:00 2001 From: Will Sobel Date: Thu, 22 May 2025 20:29:43 -0400 Subject: [PATCH] Added correct to loopback source --- src/mtconnect/source/loopback_source.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mtconnect/source/loopback_source.cpp b/src/mtconnect/source/loopback_source.cpp index 1f21a70eb..39f72cd52 100644 --- a/src/mtconnect/source/loopback_source.cpp +++ b/src/mtconnect/source/loopback_source.cpp @@ -28,6 +28,7 @@ #include "mtconnect/pipeline/timestamp_extractor.hpp" #include "mtconnect/pipeline/upcase_value.hpp" #include "mtconnect/pipeline/validator.hpp" +#include "mtconnect/pipeline/correct_timestamp.hpp" using namespace std; @@ -58,6 +59,9 @@ namespace mtconnect::source { // Convert values if (IsOptionSet(m_options, configuration::ConversionRequired)) next = next->bind(make_shared()); + + if (IsOptionSet(m_options, configuration::CorrectTimestamps)) + next = next->bind(make_shared(m_context)); // Validate Values if (IsOptionSet(m_options, configuration::Validation))