fix digest

This commit is contained in:
Sam 2013-06-11 15:19:19 +10:00
parent fa8a84f20c
commit 4e01b84695
2 changed files with 2 additions and 3 deletions

View File

@ -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')
});

View File

@ -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, {