We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f2850 commit 0f62a72Copy full SHA for 0f62a72
heudiconv/bids.py
@@ -406,9 +406,9 @@ def get_formatted_scans_key_row(dcm_fn):
406
# parse date and time and get it into isoformat
407
try:
408
date = dcm_data.ContentDate
409
- time = dcm_data.ContentTime.split('.')[0]
410
- td = time + date
411
- acq_time = datetime.strptime(td, '%H%M%S%Y%m%d').isoformat()
+ time = dcm_data.ContentTime
+ td = time + ':' + date
+ acq_time = datetime.strptime(td, '%H%M%S.%f:%Y%m%d').isoformat()
412
except (AttributeError, ValueError) as exc:
413
lgr.warning("Failed to get date/time for the content: %s", str(exc))
414
acq_time = ''
0 commit comments