Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
2474:0c57f40e2fbf | 2475:8cc3ca64a534 |
---|---|
768 throw OrthancException(ErrorCode_ParameterOutOfRange); | 768 throw OrthancException(ErrorCode_ParameterOutOfRange); |
769 } | 769 } |
770 } | 770 } |
771 | 771 |
772 // Attach the auto-computed metadata for the patient/study/series levels | 772 // Attach the auto-computed metadata for the patient/study/series levels |
773 std::string now = SystemToolbox::GetNowIsoString(); | 773 std::string now = SystemToolbox::GetNowIsoString(true /* use UTC time (not local time) */); |
774 db_.SetMetadata(series, MetadataType_LastUpdate, now); | 774 db_.SetMetadata(series, MetadataType_LastUpdate, now); |
775 db_.SetMetadata(study, MetadataType_LastUpdate, now); | 775 db_.SetMetadata(study, MetadataType_LastUpdate, now); |
776 db_.SetMetadata(patient, MetadataType_LastUpdate, now); | 776 db_.SetMetadata(patient, MetadataType_LastUpdate, now); |
777 | 777 |
778 // Attach the auto-computed metadata for the instance level, | 778 // Attach the auto-computed metadata for the instance level, |
1279 | 1279 |
1280 ExportedResource resource(-1, | 1280 ExportedResource resource(-1, |
1281 type, | 1281 type, |
1282 publicId, | 1282 publicId, |
1283 remoteModality, | 1283 remoteModality, |
1284 SystemToolbox::GetNowIsoString(), | 1284 SystemToolbox::GetNowIsoString(true /* use UTC time (not local time) */), |
1285 patientId, | 1285 patientId, |
1286 studyInstanceUid, | 1286 studyInstanceUid, |
1287 seriesInstanceUid, | 1287 seriesInstanceUid, |
1288 sopInstanceUid); | 1288 sopInstanceUid); |
1289 | 1289 |