It got stranger now. I just created a task by copying an existing one. When I chose the dates, it gave me the right dates this time. However, the following error message popped up:
The MTA doesn't support any of Swift's loaded authentication mechanisms