From 65d71f87a616f6acebafc9f08f182ab7a4de72d2 Mon Sep 17 00:00:00 2001 From: tms Date: Mon, 18 Feb 2013 00:28:19 -0500 Subject: [PATCH] Use consistent date formatting in date helpers --- .../discourse/helpers/application_helpers.js.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/helpers/application_helpers.js.coffee b/app/assets/javascripts/discourse/helpers/application_helpers.js.coffee index 269278afaeb..460df3aa2ba 100644 --- a/app/assets/javascripts/discourse/helpers/application_helpers.js.coffee +++ b/app/assets/javascripts/discourse/helpers/application_helpers.js.coffee @@ -72,8 +72,7 @@ Handlebars.registerHelper 'avatar', (user, options) -> Handlebars.registerHelper 'unboundDate', (property, options) -> dt = new Date(Ember.Handlebars.get(this, property, options)) - month = Date.SugarMethods.getLocale.method().months[12 + dt.getMonth()] - "#{dt.getDate()} #{month}, #{dt.getFullYear()} #{dt.getHours()}:#{dt.getMinutes()}" + dt.format("{d} {Mon}, {yyyy} {hh}:{mm}") Handlebars.registerHelper 'editDate', (property, options) -> dt = Date.create(Ember.Handlebars.get(this, property, options))