]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed missing cloning of moment in toJSON method 646/head
authorJan Dudek <jd@jandudek.com>
Fri, 22 Feb 2013 08:17:09 +0000 (09:17 +0100)
committerJan Dudek <jd@jandudek.com>
Fri, 22 Feb 2013 08:17:09 +0000 (09:17 +0100)
moment.js

index 12b2794a4e7ca5084fc97e289521016478004ecc..9ce5b1e87cc482ed1e723d0f9ac6c543fbfbaef7 100644 (file)
--- a/moment.js
+++ b/moment.js
         },
 
         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 () {