Skip to content

Commit

Permalink
Fix a few broken tests in UTC timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 1, 2014
1 parent f0461e6 commit d411734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/moment/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ exports.create = {
},
hourOffset = (offset > 0 ? Math.floor(offset / 60) : Math.ceil(offset / 60)),
minOffset = offset - (hourOffset * 60),
tz = (offset > 0 ?
tz = (offset >= 0 ?
'+' + pad(hourOffset) + ':' + pad(minOffset) :
'-' + pad(-hourOffset) + ':' + pad(-minOffset)),
tz2 = tz.replace(':', ''),
Expand Down

0 comments on commit d411734

Please sign in to comment.