Skip to content

Commit

Permalink
Ensure that userOffsets always contains at least 1 zone.
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwood committed Oct 7, 2015
1 parent 2ded26b commit 144eda8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moment-timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@
}

function userOffsets() {
var offsets = [],
startYear = new Date().getFullYear() - 2,
var startYear = new Date().getFullYear() - 2,
last = new UserOffset(new Date(startYear, 0, 1)),
offsets = [last],
change, next, i;

for (i = 1; i < 48; i++) {
Expand Down

0 comments on commit 144eda8

Please sign in to comment.