changeset 4991:3cdda1cec537

fix
author Alain Mazy <am@osimis.io>
date Sun, 01 May 2022 12:38:52 +0200
parents b1fe3b44ce1d
children d05626038846
files OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp	Sun May 01 10:47:08 2022 +0200
+++ b/OrthancServer/Plugins/Samples/Housekeeper/Plugin.cpp	Sun May 01 12:38:52 2022 +0200
@@ -26,6 +26,7 @@
 #include <boost/thread.hpp>
 #include <boost/algorithm/string.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
+#include <boost/date_time/special_defs.hpp>
 #include <json/value.h>
 #include <json/writer.h>
 #include <string.h>
@@ -257,7 +258,7 @@
     target["LastProcessedChange"] = Json::Value::Int64(lastProcessedChange);
     target["LastChangeToProcess"] = Json::Value::Int64(lastChangeToProcess);
     
-    if (lastTimeStarted == boost::posix_time::special_values::not_a_date_time)
+    if (lastTimeStarted == boost::date_time::special_values::not_a_date_time)
     {
       target["LastTimeStarted"] = Json::Value::null;  
     }
@@ -277,7 +278,7 @@
     lastChangeToProcess = source["LastChangeToProcess"].asInt64();
     if (source["LastTimeStarted"].isNull())
     {
-      lastTimeStarted = boost::posix_time::special_values::not_a_date_time;
+      lastTimeStarted = boost::date_time::special_values::not_a_date_time;
     }
     else
     {