Skip to content

Commit a2a0647

Browse files
authored
Merge pull request #1524 from eclipse-tractusx/copilot/fix-calendar-component-error
fix: ReferenceError: startDateFormatted is not defined on open-meetings page
2 parents d71e72c + d22c5a1 commit a2a0647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/meetingUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ export function getScheduleDescription(meeting, timezone = SOURCE_TIMEZONE) {
190190
if (recurrence.endDate && recurrence.endDate !== recurrence.startDate) {
191191
const endEventDate = parse(recurrence.endDate, 'yyyy-MM-dd', new Date());
192192
const endDateFormatted = formatInTimeZone(endEventDate, timezone, 'EEEE, d. MMMM yyyy');
193-
return `${startDateFormatted}${endDateFormatted} from ${timeRange} ${tzAbbr}`;
193+
return `${dateStr}${endDateFormatted} from ${timeRange} ${tzAbbr}`;
194194
}
195195

196-
return `${startDateFormatted} from ${timeRange} ${tzAbbr}`;
196+
return `${dateStr} from ${timeRange} ${tzAbbr}`;
197197
}
198198

199199
// Recurring events

0 commit comments

Comments
 (0)