diff --git a/app/Services/Pacs/DicomUtils.php b/app/Services/Pacs/DicomUtils.php index cecfbaf..89e5f21 100644 --- a/app/Services/Pacs/DicomUtils.php +++ b/app/Services/Pacs/DicomUtils.php @@ -3,6 +3,7 @@ namespace App\Services\Pacs; use Carbon\Carbon; +use Illuminate\Support\Str; final class DicomUtils { @@ -21,6 +22,6 @@ public static function dateTimeToCarbon(?string $datePart, ?string $timePart, st return null; } - return Carbon::createFromFormat('YmdHis.u', $datePart.$timePart, $timezone); + return Carbon::createFromFormat('YmdHis', $datePart.Str::before($timePart, '.'), $timezone); } }