Skip to content

Commit

Permalink
fix: Do not clone the Date instance needlessly in toISOString
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Sep 15, 2018
1 parent d08269c commit 088cdc5
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 @@ -417,7 +417,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 088cdc5

Please sign in to comment.