From bdad237ded5e42e915ce05ca7d284b10eef30eb4 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Tue, 24 Oct 2023 13:12:12 +0200 Subject: [PATCH] Fix `concatenate` preprocessor function (#2240) --- esmvalcore/preprocessor/_io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esmvalcore/preprocessor/_io.py b/esmvalcore/preprocessor/_io.py index a6b2ccdd94..b9c59c1adc 100644 --- a/esmvalcore/preprocessor/_io.py +++ b/esmvalcore/preprocessor/_io.py @@ -261,10 +261,10 @@ def _check_time_overlaps(cubes): overlapping_cubes[1], ) - start_point = isodate.date_isoformat( - new_dates[0], format=isodate.isostrf.DATE_BAS_COMPLETE) - end_point = isodate.date_isoformat( - new_dates[-1], format=isodate.isostrf.DATE_BAS_COMPLETE) + start_point = isodate.datetime_isoformat( + new_dates[0], format=isodate.isostrf.DT_BAS_COMPLETE) + end_point = isodate.datetime_isoformat( + new_dates[-1], format=isodate.isostrf.DT_BAS_COMPLETE) new_cube = clip_timerange(overlapping_cubes[0], f'{start_point}/{end_point}')