Updating start time of an event to the past results in changed end time
Summary
When changing the start time of an already running event to a time in the past and trying to keep the end time, the start time doesn't get changed, but the end time is set too late. No error message is displayed.
Steps to reproduce
Create an event for today beginning an hour from 'now'. Then edit the event and change the start time two hours back. The end time will automatically set back two hours as well. Change the end time again to the original end time and save the event.
What is the current bug behavior?
The start time will remain unchanged as before the editing, but the end time will be set to two hours later.
What is the expected correct behavior?
- There should be a warning: 'do you really want to set the start time of the event to the past?'
- The end time should be saved correctly.
Propositions
I generally would allow the start time of an event to be set in the past if the event is happening today. I had the following scenario: I got the news of a two-day event only shortly after the event already started. As I wanted to publish it on openki, I first tried to enter the correct start and end time. I then got an error message, that events can't start in the past. So I changed the start time to half an hour from 'now'. I afterwards edited the event to correct the start time and this resulted in detecting the bug described here. If the event is starting 'today', instead of an error message I propose to show a warning as proposed before and allowing to save a start time in the past as long as it is still 'today'.