try fix event

This commit is contained in:
isUnknown 2024-09-24 08:59:17 +02:00
parent 3809d96504
commit ece995352f
5 changed files with 14 additions and 15 deletions

View file

@ -149,7 +149,9 @@ function getId(eventData) {
function createEmptyCalendar() {
const calendar = {};
for (let month = 9; month < 21; month++) {
const currentMonth = dayjs().month();
for (let month = currentMonth; month < 21; month++) {
const normalizedMonth = ((month - 1) % 12) + 1;
const daysInMonth = dayjs()
@ -178,7 +180,7 @@ function createEmptyCalendar() {
return calendar;
}
async function getCurrentSeasonCalendar(monthNumb, dates) {
async function getCurrentSeasonCalendar() {
const calendar = createEmptyCalendar();
const requestParams = {