Calendar month view day column headers attribute has wrong day of the week if start of the week isn't Sunday
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2937387. -->
Reported by: [jazzfiction](https://www.drupal.org/user/111967)
>>>
<p>In the month view, the header attribute for the the date has the wrong day name listed if the start of the week isn't set to Sunday. In my case the start of the week is set to Monday to correspond to the ISO-8601 standard for weeks. This is because we use a week view and PHP 7+ uses this standard for weeks.</p>
<p>I changed two for loops into foreach loops to properly deal with how Drupal reorders the week day names. I then pull the index and use that for $week_day in calendarBuildMonth and $i in calendarBuildWeek. I also changed how the multiday and single day buckets are initialized so they keep the weekDaysOredered key order.</p>
issue