Browse Source

Changes how current, start, and end are set to create a moment instance with the same locale as the TimeStep's moment instance (#1932)

codeClimate
Nathaniel Bowditch 8 years ago
committed by Alexander Wunschik
parent
commit
d9519595d8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/timeline/TimeStep.js

+ 3
- 3
lib/timeline/TimeStep.js View File

@ -93,9 +93,9 @@ TimeStep.prototype.setMoment = function (moment) {
this.moment = moment;
// update the date properties, can have a new utcOffset
this.current = this.moment(this.current);
this._start = this.moment(this._start);
this._end = this.moment(this._end);
this.current = this.moment(this.current.valueOf());
this._start = this.moment(this._start.valueOf());
this._end = this.moment(this._end.valueOf());
};
/**

Loading…
Cancel
Save