Skip to content

Commit

Permalink
fix(bug): fix endOf month
Browse files Browse the repository at this point in the history
close #61
  • Loading branch information
iamkun committed Apr 26, 2018
1 parent b517622 commit a8967b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Dayjs {
const instanceFactorySet = (method, slice) => {
const argumentStart = [0, 0, 0, 0]
const argumentEnd = [23, 59, 59, 999]
return new Dayjs(Date()[method].apply(
return new Dayjs(this.toDate()[method].apply(
this.toDate(),
isStartOf ? argumentStart.slice(slice) : argumentEnd.slice(slice)
))
Expand Down

0 comments on commit a8967b2

Please sign in to comment.