https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129 --- Comment #307 from Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> --- Created attachment 209503 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209503&action=edit Bug 41129: (QA follow-up) Use the library day for today - today() returned library-timezone midnight as an instant, while toDay() and every other calendar day is a local midnight standing for a library date, so the past-date and lead-time checks were off by a day whenever browser and library timezones differ - today() now returns the library's calendar date the same way toDay() does - minDate (the picker's earliest day) and the default availability window used the browser's date; derive both from today() as well - Extend the today() spec to compare against toDay() Test plan: 1. Run: yarn cypress run --component --spec t/cypress/component/lib/booking/dates-timezone_spec.ts 2. Confirm it passes; without this patch the new assertions fail 3. Set the browser timezone ahead of the library's (e.g. library Europe/Berlin, browser Australia/Brisbane) and open the booking modal in the browser's early morning 4. Confirm the earliest selectable day is the library's tomorrow, not the browser's Assisted-by: Opus 5.5 (Anthropic) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.