Skip to content

Conversation

@BastianLedererIcinga
Copy link
Contributor

@BastianLedererIcinga BastianLedererIcinga commented Nov 5, 2025

fix: #366
Rotations that have their start on the same day as their to-day, will now have their first entries created correctly.
Screenshot from 2025-11-05 14-37-19

@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Nov 5, 2025
@BastianLedererIcinga
Copy link
Contributor Author

When the rotation starts on the same weekday it ends and the start time is later the end time, the start will instead be 12 AM for the first entry.
The same is applied in cases where start and end time are equal, though I am not sure if this is the correct behavior.

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug is fixed. But if you choose e.g. midnight on thursday as end time and today (thursday) as first handoff, the form pretends that the rotation will start immediately, which isn't true.

@nilmerg nilmerg merged commit 7d1378b into main Nov 10, 2025
10 checks passed
@nilmerg nilmerg deleted the fix/incorrect-first-rotation-entries branch November 10, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScheduleForm: Shift display bug

3 participants