fix digest
This commit is contained in:
parent
fa8a84f20c
commit
4e01b84695
|
@ -41,6 +41,6 @@ Discourse.AdminDashboardController = Ember.Controller.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
problemsTimestamp: function() {
|
problemsTimestamp: function() {
|
||||||
return this.get('problemsFetchedAt').long();
|
return moment(this.get('problemsFetchedAt')).format('LLL');
|
||||||
}.property('problemsFetchedAt')
|
}.property('problemsFetchedAt')
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
**/
|
**/
|
||||||
|
|
||||||
var oneWeekAgo = function() {
|
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, {
|
Discourse.AdminEmailPreviewDigestRoute = Discourse.Route.extend(Discourse.ModelReady, {
|
||||||
|
|
Loading…
Reference in New Issue