Adjust date format for task body
This commit is contained in:
parent
bd0a4f5ae9
commit
5e3510f0a1
1 changed files with 8 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue