Skip to content

Commit

Permalink
Merge pull request #987 from traPtitech/fix/getMonthlyEvents
Browse files Browse the repository at this point in the history
月末の予定を取得できるように
  • Loading branch information
Pugma authored Nov 18, 2024
2 parents 391cac6 + 98e5b33 commit c23a4c2
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 c23a4c2

Please sign in to comment.