From: Iskren Chernev Date: Thu, 26 Sep 2013 17:36:41 +0000 (-0700) Subject: toString always prints date in English X-Git-Tag: 2.3.0~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1139%2Fhead;p=thirdparty%2Fmoment.git toString always prints date in English --- diff --git a/moment.js b/moment.js index da4fdf61c..4a4e7fa36 100644 --- a/moment.js +++ b/moment.js @@ -1420,7 +1420,7 @@ }, toString : function () { - return this.format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); + return this.clone().lang('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); }, toDate : function () {