Hard due dates will not work if ceiling date is the same date as checkout,
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
3.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When using Hard Due Dates, ( Admin > Server Administration > Hard Due Date Changes), if the "Current Ceiling Date" falls on the same day the checkout is being made, the hard due date is skipped.
The reason is because the ceiling date is stamped in the database with the time 00:00:00 (12:00AM). So anything checked out on that day has already passed the hard due date time and the hard due date is considered no longer valid. This makes the last day of the hard due date virtually non-existant.
The time cannot be selected from the hard_due_date screen, it will only allow a date. As a temporary fix, folks that have used this I have manually updated the time in the database to read 23:59:00.
The code that checks if the due_date has passed should really just omit the time portion of the field. It should just if the actual date part is greater than the current date. This would allow the hard due date to be valid up until the day of.
Changed in evergreen: | |
status: | New → Incomplete |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
Changed in evergreen: | |
status: | Triaged → Confirmed |
Changed in evergreen: | |
milestone: | 2.12.6 → 3.0-beta2 |
Changed in evergreen: | |
milestone: | 3.0-beta2 → 2.12.6 |
Changed in evergreen: | |
milestone: | 2.12.6 → 2.12.7 |
Changed in evergreen: | |
milestone: | 2.12.7 → 2.12.8 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Sidenote, it looks like all versions of EG since hard due dates were implemented have this issue. I was testing on a 2.2.5 system, but it also looks to be an issue in the newest release as well.