From 4e01b846953e33f291cd593ab030b18e2709f84d Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 11 Jun 2013 15:19:19 +1000 Subject: [PATCH] fix digest --- .../admin/controllers/admin_dashboard_controller.js | 2 +- .../admin/routes/admin_email_preview_digest_route.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/admin/controllers/admin_dashboard_controller.js b/app/assets/javascripts/admin/controllers/admin_dashboard_controller.js index 3e2cb869615..3bfacd35c68 100644 --- a/app/assets/javascripts/admin/controllers/admin_dashboard_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_dashboard_controller.js @@ -41,6 +41,6 @@ Discourse.AdminDashboardController = Ember.Controller.extend({ }, problemsTimestamp: function() { - return this.get('problemsFetchedAt').long(); + return moment(this.get('problemsFetchedAt')).format('LLL'); }.property('problemsFetchedAt') }); diff --git a/app/assets/javascripts/admin/routes/admin_email_preview_digest_route.js b/app/assets/javascripts/admin/routes/admin_email_preview_digest_route.js index 08b4327ce51..3788441771b 100644 --- a/app/assets/javascripts/admin/routes/admin_email_preview_digest_route.js +++ b/app/assets/javascripts/admin/routes/admin_email_preview_digest_route.js @@ -8,8 +8,7 @@ **/ var oneWeekAgo = function() { - // TODO localize date format? - return moment().subtract('days',7).format('yyyy-MM-dd'); + return moment().subtract('days',7).format('YYYY-MM-DD'); } Discourse.AdminEmailPreviewDigestRoute = Discourse.Route.extend(Discourse.ModelReady, {