mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:33:06 +08:00
fix digest
This commit is contained in:
parent
fa8a84f20c
commit
4e01b84695
|
@ -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')
|
||||
});
|
||||
|
|
|
@ -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, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user