diff --git a/app/assets/javascripts/discourse/lib/formatter.js b/app/assets/javascripts/discourse/lib/formatter.js index fd167a8ce04..95073a7d1a6 100644 --- a/app/assets/javascripts/discourse/lib/formatter.js +++ b/app/assets/javascripts/discourse/lib/formatter.js @@ -105,8 +105,7 @@ Discourse.Formatter = (function(){ // http://stackoverflow.com/questions/196972/convert-string-to-title-case-with-javascript // TODO: locale support ? - toTitleCase = function toTitleCase(str) - { + toTitleCase = function toTitleCase(str) { return str.replace(/\w\S*/g, function(txt){ return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); }); @@ -114,7 +113,6 @@ Discourse.Formatter = (function(){ longDate = function(dt) { if (!dt) return; - return moment(dt).longDate(); };