The 'Return before expiry' syspref sets the issue duedate to the patrons expiry date. It is setting the HH:MM element to 00:00 as the expiry date lacks a time element. It should set it to the end of the patron's expiration date
Created attachment 12568 [details] [review] Proposed Patch
Created attachment 12578 [details] [review] [SIGNED-OFF] Bug 8841 Duedate should be set to end of expiry day When reducing duedate to patron's expiry date it should be set to end of that day not 00:00 take account of the fact that the borrower expiry date will have no hours/minutes Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
I'm pretty sure this is a bug, so marking it as such.
QA comment: one line patch, fixing a bug that can happen frequently passed QA
Pushed to 3.8.x will be in 3.8.7