Skip to content

Commit

Permalink
Update src/pages/events.vue
Browse files Browse the repository at this point in the history
Replace the code that was used for debugging with the actual solution

Co-authored-by: Danila Rodichkin <[email protected]>
  • Loading branch information
MicahBCode and daniluk4000 authored Jan 10, 2025
1 parent 8b0a138 commit 250094a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const groupedEventData = computed(() => {
const events: Record<number, VatsimEvent[]> = {};
data.value?.events.forEach(event => {
if (new Date(event.end_time) < new Date('2025-01-10T20:00:01Z')) return;
if (new Date(event.end_time) < new Date()) return;
const date = new Date(event.start_time);
const key = parseInt(date.getFullYear().toString() + `0${ date.getMonth() }`.slice(-2) + `0${ date.getDate() }`.slice(-2));
Expand Down

0 comments on commit 250094a

Please sign in to comment.