Adjust date format for task body

This commit is contained in:
Raimund Schlüßler 2018-10-16 20:57:46 +02:00
parent bd0a4f5ae9
commit 5e3510f0a1
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -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: {