Skip to content

Commit

Permalink
fix: expanded the duration to 23:59 on last day of the month
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma authored Nov 18, 2024
1 parent 391cac6 commit 98e5b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class CalendarPage extends Vue {
this.status = 'loading'
this.events = []
const startDate = new Date(newDate.getFullYear(), newDate.getMonth() - 1, 1)
const endDate = new Date(newDate.getFullYear(), newDate.getMonth() + 2, 0)
const endDate = new Date(newDate.getFullYear(), newDate.getMonth() + 2, 0, 23, 59, 59)
try {
this.events = await api.events.getEvents({
dateBegin: startDate.toISOString(),
Expand Down

0 comments on commit 98e5b33

Please sign in to comment.