From 5d0d3aaa16f12613f98adaeac7c0317cbb9f7ef1 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 21 Jun 2021 14:13:25 +1000 Subject: [PATCH] Minor fix --- .../ifcopenshell/api/sequence/cascade_schedule.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/sequence/cascade_schedule.py b/src/ifcopenshell-python/ifcopenshell/api/sequence/cascade_schedule.py index 46c13f924e..1efc2aef3f 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/sequence/cascade_schedule.py +++ b/src/ifcopenshell-python/ifcopenshell/api/sequence/cascade_schedule.py @@ -77,11 +77,14 @@ class Usecase: if starts and finishes: start = max(starts) finish = max(finishes) - potential_finish = ifcopenshell.util.sequence.get_finish_date( - start, - duration, - task.TaskTime.DurationType, - self.get_calendar(task), + potential_finish = datetime.datetime.combine( + ifcopenshell.util.sequence.get_finish_date( + start, + duration, + task.TaskTime.DurationType, + self.get_calendar(task), + ), + datetime.datetime.min.time(), ) if potential_finish > finish: start_ifc = ifcopenshell.util.date.datetime2ifc(start, "IfcDateTime")