@haiilo/catalyst 8.3.1 → 8.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4109,12 +4109,12 @@ function daysForLocale(language, weekday = 'long') {
4109
4109
  const date = new Date();
4110
4110
  const firstDayOfWeek = (date.getUTCDate() - date.getUTCDay() + 7) % 7;
4111
4111
  const format = new Intl.DateTimeFormat(language, { weekday }).format;
4112
- return [...Array(7).keys()].map(day => format(date.setUTCDate(firstDayOfWeek + day)));
4112
+ return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
4113
4113
  }
4114
4114
  function monthsForLocale(language, month = 'long') {
4115
4115
  const date = new Date();
4116
4116
  const format = new Intl.DateTimeFormat(language, { month }).format;
4117
- return [...Array(12).keys()].map(month => format(date.setUTCMonth(month)));
4117
+ return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
4118
4118
  }
4119
4119
  function getLocale(language) {
4120
4120
  return {