FIX: incorrect backup and update times on dashboard

This commit is contained in:
Joffrey JAFFEUX 2018-06-07 11:18:17 +02:00 committed by Neil Lalonde
parent e66d5425e4
commit 940c0f569f

View File

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