Skip to content

BookingPool 48004: Unify Booking Timestamp Handling - #12253

Open
matheuszych wants to merge 2 commits into
ILIAS-eLearning:release_11from
matheuszych:bt/48004
Open

matheuszych wants to merge 2 commits into
ILIAS-eLearning:release_11from
matheuszych:bt/48004

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

See: https://mantis.ilias.de/view.php?id=48004

Booking reservation timestamps were handled inconsistently across BookingManager: some code paths stored or displayed the slot end as end-1 second (e.g. 11:59:59 instead of 12:00:00), while others used the full inclusive end. This caused mismatches between views, availability checks, and stored data.

All write, display, and action paths now use the same inclusive from/to values without +1/-1 second adjustments. A data migration (ilBookingManagerReservationTimestampMigration) normalizes existing rows where timestamps are not minute-aligned (MOD(ts, 60) <> 0).

/cc @thojou

See: https://mantis.ilias.de/view.php?id=48004

Booking reservation timestamps were handled inconsistently across
BookingManager: some code paths stored or displayed the slot end as
end-1 second (e.g. 11:59:59 instead of 12:00:00), while others used
the full inclusive end. This caused mismatches between views,
availability checks, and stored data.

All write, display, and action paths now use the same inclusive
from/to values without +1/-1 second adjustments. A data migration
(`ilBookingManagerReservationTimestampMigration`) normalizes existing
rows where timestamps are not minute-aligned (MOD(ts, 60) <> 0).
@thojou thojou self-assigned this Nov 2, 2026
@thojou thojou added bugfix php Pull requests that update Php code labels Nov 2, 2026
See: https://mantis.ilias.de/view.php?id=48004

Booking ends are stored inclusive. The migration moves a legacy second-59 end onto the next minute. The personal calendar added one second to every booking end, so an all-day slot at 00:00:00 also appeared on the next day. modifyEvent returns the entry unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants