mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 16:46:12 +08:00
FIX: incorrect backup and update times on dashboard
This commit is contained in:
parent
1071aa21ab
commit
74ced977be
|
@ -114,12 +114,12 @@ export default Ember.Controller.extend({
|
|||
return moment().locale("en").utc().subtract(1, "day").endOf("day");
|
||||
},
|
||||
|
||||
@computed("updated_at")
|
||||
@computed("model.attributes.updated_at")
|
||||
updatedTimestamp(updatedAt) {
|
||||
return moment(updatedAt).format("LLL");
|
||||
},
|
||||
|
||||
@computed("last_backup_taken_at")
|
||||
@computed("model.attributes.last_backup_taken_at")
|
||||
backupTimestamp(lastBackupTakenAt) {
|
||||
return moment(lastBackupTakenAt).format("LLL");
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user