Skip to content

Commit

Permalink
Do not clone the Date instance needlessly in toISOString
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf authored and iamkun committed Sep 26, 2018
1 parent 97712c4 commit 88548e9
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 @@ -422,7 +422,7 @@ class Dayjs {
// ie 8 return
// new Dayjs(this.valueOf() + this.$d.getTimezoneOffset() * 60000)
// .format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
return this.toDate().toISOString()
return this.$d.toISOString()
}

toObject() {
Expand Down

0 comments on commit 88548e9

Please sign in to comment.