Skip to content

Commit ba145ee

Browse files
committed
fix: Small fix to date time
1 parent 78d5f4b commit ba145ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function endOfDate (date, unit) {
128128
case 'year':
129129
t.setMonth(11)
130130
case 'month':
131-
t.setDate(daysInMonth(this.date))
131+
t.setDate(daysInMonth(date))
132132
case 'day':
133133
t.setHours(23)
134134
case 'hour':

0 commit comments

Comments
 (0)