Skip to content

Commit

Permalink
fix: Use correct event duration
Browse files Browse the repository at this point in the history
  • Loading branch information
PMax5 committed Feb 16, 2024
1 parent 834a7ef commit 5d8c88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/deck/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export class Event {
getDuration(): number {
const beginDate = new Date(this.begin).getTime()
const endDate = new Date(this.end).getTime()
return new Date(endDate - beginDate).getUTCDate()
return new Date(endDate - beginDate).getUTCDate() - 1
}
}

0 comments on commit 5d8c88b

Please sign in to comment.