https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129
--- Comment #266 from Paul Derscheid <[email protected]> --- Created attachment 209269 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209269&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 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
