From d9519595d847c75e47da67d3947fc6813d712518 Mon Sep 17 00:00:00 2001 From: Nathaniel Bowditch Date: Tue, 9 Aug 2016 18:59:58 -0400 Subject: [PATCH] Changes how current, start, and end are set to create a moment instance with the same locale as the TimeStep's moment instance (#1932) --- lib/timeline/TimeStep.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/timeline/TimeStep.js b/lib/timeline/TimeStep.js index 95a5b5e2..1d0afd12 100644 --- a/lib/timeline/TimeStep.js +++ b/lib/timeline/TimeStep.js @@ -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()); }; /**