Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mne_bids/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def _handle_scans_reading(scans_fname, raw, bids_path):

acq_time = datetime.strptime(acq_time, date_format)

if acq_time_is_utc:
if acq_time_is_utc or acq_time.tzinfo is None:
# Enforce setting timezone to UTC without additonal conversion
acq_time = acq_time.replace(tzinfo=timezone.utc)
else:
Expand Down
Loading