diff OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 2475:8cc3ca64a534

Orthanc now uses UTC (universal time) instead of local time in its database
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Feb 2018 16:55:05 +0100
parents 878b59270859
children d3d306bc4b99
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Thu Feb 08 11:51:41 2018 +0100
+++ b/OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp	Mon Feb 19 16:55:05 2018 +0100
@@ -831,7 +831,7 @@
     
     // Inject time-related information
     std::string date, time;
-    SystemToolbox::GetNowDicom(date, time);
+    SystemToolbox::GetNowDicom(date, time, true /* use UTC time (not local time) */);
     dicom.ReplacePlainString(DICOM_TAG_ACQUISITION_DATE, date);
     dicom.ReplacePlainString(DICOM_TAG_ACQUISITION_TIME, time);
     dicom.ReplacePlainString(DICOM_TAG_CONTENT_DATE, date);