FIX - sanitize time part
This commit is contained in:
parent
d762fd71ae
commit
93f8cd5196
@ -3,6 +3,7 @@
|
|||||||
namespace App\Services\Pacs;
|
namespace App\Services\Pacs;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
final class DicomUtils
|
final class DicomUtils
|
||||||
{
|
{
|
||||||
@ -21,6 +22,6 @@ public static function dateTimeToCarbon(?string $datePart, ?string $timePart, st
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Carbon::createFromFormat('YmdHis.u', $datePart.$timePart, $timezone);
|
return Carbon::createFromFormat('YmdHis', $datePart.Str::before($timePart, '.'), $timezone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user