Closed qarmin closed 2 hours ago
Thank you for reporting. There seems to be a mismatch between the encoded DICOM datetime and its precalculated length. I believe that the chrono DateTime provided should yield a DICOM datetime of maximum precision in this case (20240809090939.000000+0000
, 26 bytes), but right now it is being encoded as 20240809090939.0+0000
.
Hi,
I think that the same issue you fixed in https://github.com/Enet4/dicom-rs/pull/557 exists also in
impl fmt::Display for DicomTime{
}
Regards, Marcin
Good catch @marn13, that could probably justify how this happened. In this case I would let that impl suppress the trailing zeros, because Display
is intended for human readability and does not have to comply with DICOM value encoding constraints, unlike to_encoded()
.
Code
error
file - test.dcm.zip
even dcmdump cannot read this file