mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Fix bug where calendar caching meant invalid duration calculations if you edited your calendar after a date calculation.
This commit is contained in:
@@ -168,7 +168,7 @@ def is_calendar_applicable(day, calendar):
|
||||
|
||||
|
||||
def is_day_in_work_time(day, work_time):
|
||||
is_day_in_work_time = False
|
||||
is_day_in_work_time = True
|
||||
if isinstance(day, datetime.datetime):
|
||||
day = datetime.date(day.year, day.month, day.day)
|
||||
if work_time.Start:
|
||||
|
||||
Reference in New Issue
Block a user