From bbc377ff5e5aa056f1d909d1951dd58cc16ee50f Mon Sep 17 00:00:00 2001 From: Matthew Pearson Date: Mon, 5 Aug 2019 14:59:18 -0400 Subject: [PATCH] andor3.cpp: remove the hard coded time stamp offset (631152000) so we use EPICS time rather than POSIX time. This fixes issue #6. --- andor3App/src/andor3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/andor3App/src/andor3.cpp b/andor3App/src/andor3.cpp index 857a97e3..00665c63 100644 --- a/andor3App/src/andor3.cpp +++ b/andor3App/src/andor3.cpp @@ -285,7 +285,7 @@ void andor3::imageTask() } if(pImage) { pImage->uniqueId = count; - pImage->timeStamp = 631152000 + imageStamp.secPastEpoch + + pImage->timeStamp = imageStamp.secPastEpoch + (imageStamp.nsec / 1.0e9); updateTimeStamp(&pImage->epicsTS);