Skip to content
Snippets Groups Projects

Fix deprecated usage of IceUtil::Time

Merged Rainer Kartmann requested to merge fix/deprecation-warnings-date-time-ice-time into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -20,9 +20,9 @@ namespace armarx::armem::server::motions::mdb::conversion
motionReference.associatedInstitution = json["associatedInstitution"];
motionReference.associatedProject = json["associatedProject"];
motionReference.comment = json["comment"];
motionReference.createdDate = IceUtil::Time::seconds(json["createdDate"]);
motionReference.createdDate = DateTime(Duration::Seconds(json["createdDate"]));
motionReference.createdUser = json["createdUser"];
motionReference.modifiedDate = IceUtil::Time::seconds(json["modifiedDate"]);
motionReference.modifiedDate = DateTime(Duration::Seconds(json["modifiedDate"]));
motionReference.modifiedUser = json["modifiedUser"];
motionReference.date = json["date"];
for (auto it = json["attachedFiles"].begin(); it != json["attachedFiles"].end(); ++it)
@@ -34,7 +34,7 @@ namespace armarx::armem::server::motions::mdb::conversion
{
armarx::motion::mdb::arondto::FileReference fileRef;
fileRef.attachedToId = attachedFile["attachedToId"];
fileRef.createdDate = IceUtil::Time::microSeconds(attachedFile["createdDate"]);
fileRef.createdDate = DateTime(Duration::MicroSeconds(attachedFile["createdDate"]));
fileRef.createdUser = attachedFile["createdUser"];
fileRef.description = attachedFile["description"];
fileRef.fileName = attachedFile["fileName"];
Loading