diff OrthancServer/ServerIndex.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 3372c5255333
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Thu Feb 08 11:51:41 2018 +0100
+++ b/OrthancServer/ServerIndex.cpp	Mon Feb 19 16:55:05 2018 +0100
@@ -770,7 +770,7 @@
       }
 
       // Attach the auto-computed metadata for the patient/study/series levels
-      std::string now = SystemToolbox::GetNowIsoString();
+      std::string now = SystemToolbox::GetNowIsoString(true /* use UTC time (not local time) */);
       db_.SetMetadata(series, MetadataType_LastUpdate, now);
       db_.SetMetadata(study, MetadataType_LastUpdate, now);
       db_.SetMetadata(patient, MetadataType_LastUpdate, now);
@@ -1281,7 +1281,7 @@
                               type,
                               publicId,
                               remoteModality,
-                              SystemToolbox::GetNowIsoString(),
+                              SystemToolbox::GetNowIsoString(true /* use UTC time (not local time) */),
                               patientId,
                               studyInstanceUid,
                               seriesInstanceUid,