Skip to content

Commit

Permalink
Resolve issue iamkun#497
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Feb 16, 2019
1 parent 56050c2 commit 737d718
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 @@ -141,7 +141,7 @@ class Dayjs {
}

unix() {
return Math.floor(this.valueOf() / 1000)
return Math.floor(new Date(this.$d.toUTCString()) / 1000)
}

valueOf() {
Expand Down

0 comments on commit 737d718

Please sign in to comment.