diff --git a/src/components/Task.vue b/src/components/Task.vue index 3fab60af..58bd70da 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -131,7 +131,14 @@ export default { }, filters: { formatDate: function(due) { - return valid(due) ? moment(due).format('L') : '' + return valid(due) ? moment(due).calendar(null, { + lastDay: t('tasks', '[Yesterday]'), + sameDay: t('tasks', '[Today]'), + nextDay: t('tasks', '[Tomorrow]'), + lastWeek: 'L', + nextWeek: 'L', + sameElse: 'L' + }) : '' } }, props: {