https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129

--- Comment #361 from Paul Derscheid <[email protected]> ---
Created attachment 210446
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210446&action=edit
Bug 41129: (QA follow-up) Make booking component specs timezone-independent

- Calendar-date fixtures used new Date("YYYY-MM-DD"), which is UTC
  midnight and so the previous day west of UTC
- Use local date constructors, and local-midnight ISO strings where the
  store or a submitted range holds a calendar date

Test plan:
1. Run: TZ=America/New_York yarn cypress run --component
2. Run: TZ=Pacific/Auckland yarn cypress run --component
3. Run: TZ=UTC yarn cypress run --component
4. Confirm all three pass; without this patch step 1 fails in
   BookingCalendar_spec.ts, BookingPeriodStep_spec.ts and others

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/

Reply via email to