You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a shift that starts ad midnight on day X is edited, the date form field is prefilled with date X-1 and saved like this. Hence, editing some other property of such a shift also alters the date.
To Reproduce
Steps to reproduce the behavior:
Create an event with a single shift starting on day X at midnight (12 am) and ending at, for example, 1 am.
Save the event and shift. Check that the event date and shift date displayed on the event's page are equal to date X.
Edit the shift. Notice that the date field shows X-1.
Save the shift without making any changes.
The shift (and thus the event) have now moved to date X-1, as can be seen on the event's page
Expected behavior
When editing a shift, the form should be prefilled with the correct current values of the shift so that the only changes that will be applied to the shift are those the user explicitly entered into the form.
Environment
Tested with Ephios v0.17.2 as well as the latest commit on main (9be8059). Bug occurs independent from the browser used (tested with Firefox and Chromium).
Describe the bug
When a shift that starts ad midnight on day X is edited, the date form field is prefilled with date X-1 and saved like this. Hence, editing some other property of such a shift also alters the date.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When editing a shift, the form should be prefilled with the correct current values of the shift so that the only changes that will be applied to the shift are those the user explicitly entered into the form.
Environment
Tested with Ephios v0.17.2 as well as the latest commit on main (9be8059). Bug occurs independent from the browser used (tested with Firefox and Chromium).
Additional context
Might be related to #515
The text was updated successfully, but these errors were encountered: