events/convoys: erratic behaviour when importing an event and/or changing start times #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changing the events start time does not automatically adjust the convoys, this can only be fixed manually, e.g. by moving the first convoy down and up again.
Status update: I have implemented a local fix for the scheduling issue. When the event start time or the default convoy interval is changed, convoys with automatic start times are now re-scheduled server-side from the event baseline. In addition, removing a manual convoy start time now correctly falls back to the automatic schedule. UI verification is still in progress.
Status update: besides the server-side rescheduling fix for auto-timed convoys, I also aligned the date/time handling with the intended model of storing times in UTC while interpreting user input and rendering displayed times in the user's local timezone. The local date/time field initialization and displayed schedule formatting were adjusted to avoid unstable time shifts after reloads caused by server-vs-browser timezone differences. Lint and build are clean after this change.
Verification update: after the follow-up adjustments to UTC/local-time consistency, the behavior now appears stable in testing. The event start-time change correctly updates the convoy schedule, and the displayed convoy times remain consistent after reloads.
Final update: implemented and verified. The event schedule now re-syncs automatic convoy times when the event start time or interval changes, and the local date/time handling is stable with UTC storage and local user-facing rendering. Pushed to main in commit
d278d43.Changing the events start time does not automatically adjust the convoys, this can only be fixed manually, e.g. by moving the first convoy down and up again.to events/convoys: erratic behaviour when importing an event and/or changing start times