Fix date parsing
This commit is contained in:
parent
76aecaf09a
commit
15cf127d48
2 changed files with 5 additions and 5 deletions
|
@ -129,9 +129,9 @@ export default {
|
|||
clickOutside
|
||||
},
|
||||
filters: {
|
||||
formatDate: function(due) {
|
||||
return valid(due)
|
||||
? moment(due).calendar(null, {
|
||||
formatDate: function(date) {
|
||||
return valid(date)
|
||||
? moment(date, 'YYYYMMDDTHHmmss').calendar(null, {
|
||||
lastDay: t('tasks', '[Yesterday]'),
|
||||
sameDay: t('tasks', '[Today]'),
|
||||
nextDay: t('tasks', '[Tomorrow]'),
|
||||
|
|
|
@ -404,10 +404,10 @@ export default {
|
|||
}
|
||||
},
|
||||
startDate: function() {
|
||||
return moment(this.task.start).toDate()
|
||||
return moment(this.task.start, 'YYYYMMDDTHHmmss').toDate()
|
||||
},
|
||||
dueDate: function() {
|
||||
return moment(this.task.due).toDate()
|
||||
return moment(this.task.due, 'YYYYMMDDTHHmmss').toDate()
|
||||
}
|
||||
},
|
||||
mapState({
|
||||
|
|
Loading…
Reference in a new issue