Skip to content

Commit

Permalink
Added comment at utcOffset method about the "15 minutes rounding"
Browse files Browse the repository at this point in the history
  • Loading branch information
naulacambra committed Jan 16, 2019
1 parent 6c6c1f2 commit e8e3929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ class Dayjs {
}

utcOffset() {
// Because a bug at FF24, we're rounding the timezone offset around 15 minutes
// https://github.com/moment/moment/pull/1871
return -Math.round(this.$d.getTimezoneOffset() / 15) * 15
}

Expand Down

0 comments on commit e8e3929

Please sign in to comment.