Skip to content

Commit

Permalink
Added tests for moment#2978
Browse files Browse the repository at this point in the history
  • Loading branch information
afanasy committed Mar 8, 2016
1 parent 6a0ad2b commit fc34206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/duration/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function Duration (duration) {
this._milliseconds = +milliseconds +
seconds * 1e3 + // 1000
minutes * 6e4 + // 1000 * 60
hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
hours * 36e5; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
// Because of dateAddRemove treats 24 hours as different from a
// day when working around DST, we need to store them separately
this._days = +days +
Expand Down

0 comments on commit fc34206

Please sign in to comment.