Fix check for multiply hyphens in datetime ranges.

According to DICOM, this check isn't necessary: a datetime range
check with negative timezone offset is invalid.  But since I'm doing
the check anyway, I'd better to it correctly.