From f4376a3e646802be099d90cd2aa20fd2123a6fc9 Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Sun, 24 Nov 2013 20:58:03 -0500 Subject: [PATCH] simplifying diff. Fixes #1227 --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 5b46691b2..a07807403 100644 --- a/moment.js +++ b/moment.js @@ -1796,7 +1796,7 @@ }, diff : function (input, units, asFloat) { - var that = this._isUTC ? moment(input).zone(this._offset || 0) : moment(input).local(), + var that = moment(input), zoneDiff = (this.zone() - that.zone()) * 6e4, diff, output; -- 2.47.2