Skip to content

Commit

Permalink
fix(eventDate): handle expand all events
Browse files Browse the repository at this point in the history
handle expand all calendarevents
  • Loading branch information
AlaaN-Smadi committed Sep 4, 2024
1 parent 9b7002e commit 10cdd1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widget/controllers/widget.home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@
}

$scope.startTimeToShow = function (event) {
const defaultStartDate = configureDate.getFullYear() + "-" + moment(configureDate).format("MM") + "-" + WidgetHome.getFirstDateOfMonth(configureDate) + "T00:00:00" + moment(new Date()).format("Z");
if (defaultStartDate === eventStartDate) return new Date(event.data.startDate);

const currentDateStart = new Date(eventStartDate).setHours(0,0,0,0);
const _eventStartDate = new Date(event.data.startDate).setHours(0,0,0,0);
if (currentDateStart === _eventStartDate) {
Expand Down

0 comments on commit 10cdd1c

Please sign in to comment.