Date picker 1 day out. Bug?

Yes, no problem,

Chrome browser, tested both in Miami, FL, USA (GMT-4), and Sheffield, England (GMT+1 / BST) and the same issue existed in both time zones at the time.

I was travelling with only my phone available at the time so couldn’t investigate the issue before it was resolved.

Looking into this further now, the standard anvil DatePicker defaults to a Sunday day of week start. At some point in the past (many years ago so memory is a little fuzzy), I’ve added the following to the html head to change the picker to a Monday. This is probably the cause of the issue.

<script>
// make first day of week monday
  document.addEventListener("DOMContentLoaded", () => {
    moment.updateLocale("en", {
        week: { dow: 1 },
    });
});
</script>

Hope that helps