From 189c3de1ef7438e27153cdb0f4e6aeced6f8616f Mon Sep 17 00:00:00 2001 From: Jan Dudek Date: Fri, 22 Feb 2013 09:17:09 +0100 Subject: [PATCH] Fixed missing cloning of moment in toJSON method --- moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moment.js b/moment.js index 12b2794a4..9ce5b1e87 100644 --- a/moment.js +++ b/moment.js @@ -1059,7 +1059,7 @@ }, toJSON : function () { - return this.utc().format('YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); + return moment(this).utc().format('YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); }, toArray : function () { -- 2.47.2