fix JS error

This commit is contained in:
ralf 2022-08-05 18:59:30 +02:00
parent b22674dbd7
commit 1ab53dec86

View File

@ -1173,7 +1173,7 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet
do do
{ {
if(show_weekend || !show_weekend && [0, 6].indexOf(this.date_helper.date.getUTCDay()) === -1 || end_date === start_date) if(show_weekend || !show_weekend && [0, 6].indexOf(this.date_helper(end_date).getUTCDay()) === -1 || end_date === start_date)
{ {
day_list.push(formatDate(start, {dateFormat: "Ymd"})); day_list.push(formatDate(start, {dateFormat: "Ymd"}));
} }