@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.
@@ -4105,12 +4105,12 @@ function daysForLocale(language, weekday = 'long') {
4105
4105
  const date = new Date();
4106
4106
  const firstDayOfWeek = (date.getUTCDate() - date.getUTCDay() + 7) % 7;
4107
4107
  const format = new Intl.DateTimeFormat(language, { weekday }).format;
4108
- return [...Array(7).keys()].map(day => format(date.setUTCDate(firstDayOfWeek + day)));
4108
+ return [...Array(7).keys()].map(day => format(new Date(date.getTime()).setUTCDate(firstDayOfWeek + day)));
4109
4109
  }
4110
4110
  function monthsForLocale(language, month = 'long') {
4111
4111
  const date = new Date();
4112
4112
  const format = new Intl.DateTimeFormat(language, { month }).format;
4113
- return [...Array(12).keys()].map(month => format(date.setUTCMonth(month)));
4113
+ return [...Array(12).keys()].map(month => format(new Date(date.getTime()).setUTCMonth(month)));
4114
4114
  }
4115
4115
  function getLocale(language) {
4116
4116
  return {