Story #92 Keep an event's end time when editing the event - cseseniordesign/reservations GitHub Wiki
End User Documentation
Dev Testing Instructions
Make sure you are on the most recent version of the dev-keep-event-end-time branch.
Go to the Events page on the website.
Create a new event, either from a preset or from scratch.
Set the event start and end time.
Create the event.
Click on the event to edit it.
Verify that the Start Date & Time and the End Date & Time match what you entered when creating the event.
You can now delete the event if you wish.
Technical Documentation
routes/admin/events.rb
Changed duration from 0 to a formula that calculates it based on the event's start and end time. Previously it would be set to 0 whenever an event was edited, making the event's end time be the same as the start time.