diff --git a/mimic-iv/buildmimic/sqlite/import.py b/mimic-iv/buildmimic/sqlite/import.py index 02b4f0b3..1cb8eb0d 100644 --- a/mimic-iv/buildmimic/sqlite/import.py +++ b/mimic-iv/buildmimic/sqlite/import.py @@ -50,7 +50,7 @@ def process_dataframe(df: pd.DataFrame, subjects: t.Optional[t.List[int]] = None) -> pd.DataFrame: for c in df.columns: if c.endswith('time') or c.endswith('date'): - df[c] = pd.to_datetime(df[c]) + df[c] = pd.to_datetime(df[c], format='ISO8601') if subjects is not None and 'subject_id' in df: df = df.loc[df['subject_id'].isin(subjects)]