Skip to content

Commit

Permalink
Bug fix out of date event (#215)
Browse files Browse the repository at this point in the history
* out of events restored for upcoming events

* wip - out of date issue for the past events on event page persists

* bug reverted to the original scope

* out of date issue fixed
  • Loading branch information
AdiMakkar authored Jan 17, 2024
1 parent ef0c5b1 commit 4e4ae5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/core/services/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export class EventService implements IListService {

private randomDate() {
let startDate = new Date();
let endDate = new Date('2023/12/31');
startDate.setDate(startDate.getDate() - 7);
let endDate = new Date();
endDate.setFullYear(endDate.getFullYear() + 1);
return new Date(startDate.getTime() + Math.random() * (endDate.getTime() - startDate.getTime()));
}

Expand Down

0 comments on commit 4e4ae5f

Please sign in to comment.