Skip to content

Commit

Permalink
Fix end_date creation approach
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Mar 25, 2024
1 parent c3a398b commit b66da38
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def reply(self):
start = self.request.form.get("start", "")
end = self.request.form.get("end", "")
past_slots = self.request.form.get("past_slots", False)
today = datetime.date.today()
first_available = self.request.form.get("first_available")

if start:
Expand All @@ -52,7 +51,7 @@ def reply(self):
end = (
self.context.aData
and self.context.aData
or datetime.date(today.year + 10, today.month, today.day)
or datetime.date(start.year + 10, start.month, start.day)
)
else:
end = start.replace(day=calendar.monthrange(start.year, start.month)[1])
Expand Down

0 comments on commit b66da38

Please sign in to comment.