]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
toString always prints date in English 1139/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 26 Sep 2013 17:36:41 +0000 (10:36 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 26 Sep 2013 17:36:41 +0000 (10:36 -0700)
moment.js

index da4fdf61c08a62da710fc2eab9e68e576e205cb8..4a4e7fa367354c17f7f698a20029954c0d2021ef 100644 (file)
--- a/moment.js
+++ b/moment.js
         },
 
         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 () {