diff --git a/src/eva/data/csv_space.py b/src/eva/data/csv_space.py index 2ed3469..b0f9016 100644 --- a/src/eva/data/csv_space.py +++ b/src/eva/data/csv_space.py @@ -156,4 +156,6 @@ def get_datetime_array(self, file_data, date_config): " \'year\': int, \'month\': int, \'day\': int, and \'hour\': int. " + f" Date information found was {date_config}") - return np.array([np.datetime64(datetime.strptime(ds, '%Y%m%d%H')) for ds in date_str_list]) + return np.array([np.datetime64(datetime.strptime(ds, + '%Y%m%d%H').strftime('%Y-%m-%dT%H:%M:%S.%f000000'), + 'ns') for ds in date_str_list])