From 1857d40b66c0419c6f95dbebdebe99afa09cdb94 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 24 Mar 2026 14:45:25 +0100 Subject: [PATCH] Bugfix Geburtsdatum darf nicht mit Uhrzeit gespeichert werden --- Service/DCEntityMapper/PersonDC_Person.cs | 4 ++++ Service/Service.csproj | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Service/DCEntityMapper/PersonDC_Person.cs b/Service/DCEntityMapper/PersonDC_Person.cs index e154fdf8f..5cf0b5993 100644 --- a/Service/DCEntityMapper/PersonDC_Person.cs +++ b/Service/DCEntityMapper/PersonDC_Person.cs @@ -106,6 +106,10 @@ namespace BeWo.Service.DCEntityMapper pEntity.Oid = pDataContract.PersonOid; pEntity.DateOfBirth = pDataContract.DateOfBirth; + if (pEntity.DateOfBirth.HasValue) + { + pEntity.DateOfBirth = pEntity.DateOfBirth.Value.Date; // CB Bugfix, es gab mal den Fall, da war die Uhrzeit mit gespeichert und das führte zu Fehlern + } pEntity.PlaceOfBirth = pDataContract.PlaceOfBirth; pEntity.FirstName = pDataContract.FirstName; pEntity.Sex = pDataContract.Sex; diff --git a/Service/Service.csproj b/Service/Service.csproj index 4693ab2eb..c1ebee8f7 100644 --- a/Service/Service.csproj +++ b/Service/Service.csproj @@ -515,7 +515,8 @@ - + +