react-weekly-planning 1.0.37 → 1.0.38
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.
- package/dist/lib/utils.js +1 -6
- package/package.json +1 -1
package/dist/lib/utils.js
CHANGED
|
@@ -122,12 +122,7 @@ export function getWeekDays(jump, timeZone) {
|
|
|
122
122
|
for (let i = 0; i < 7; i++) {
|
|
123
123
|
const day = getCalendarDate(timeZone);
|
|
124
124
|
const diff = i - currentDayOfWeek;
|
|
125
|
-
|
|
126
|
-
day.setDate(currentDate.getDate() + diff + jump - 7);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
day.setDate(currentDate.getDate() + diff + jump);
|
|
130
|
-
}
|
|
125
|
+
day.setDate(currentDate.getDate() + diff + jump);
|
|
131
126
|
const formattedDay = `${days[day.getDay()]}. ${day.getDate()}, ${month[day.getMonth()]} ${day.getFullYear()}`;
|
|
132
127
|
weekDays.push({
|
|
133
128
|
day: days[day.getDay()],
|