We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2257588 + f3e62dc commit c9792cbCopy full SHA for c9792cb
1 file changed
src/mtconnect/source/loopback_source.cpp
@@ -28,6 +28,7 @@
28
#include "mtconnect/pipeline/timestamp_extractor.hpp"
29
#include "mtconnect/pipeline/upcase_value.hpp"
30
#include "mtconnect/pipeline/validator.hpp"
31
+#include "mtconnect/pipeline/correct_timestamp.hpp"
32
33
using namespace std;
34
@@ -58,6 +59,9 @@ namespace mtconnect::source {
58
59
// Convert values
60
if (IsOptionSet(m_options, configuration::ConversionRequired))
61
next = next->bind(make_shared<ConvertSample>());
62
+
63
+ if (IsOptionSet(m_options, configuration::CorrectTimestamps))
64
+ next = next->bind(make_shared<CorrectTimestamp>(m_context));
65
66
// Validate Values
67
if (IsOptionSet(m_options, configuration::Validation))
0 commit comments