diff --git a/src/components/TaskBody.vue b/src/components/TaskBody.vue
index 7ad96a3c9..779a499d1 100644
--- a/src/components/TaskBody.vue
+++ b/src/components/TaskBody.vue
@@ -82,7 +82,7 @@ License along with this library. If not, see .
:title="t('tasks', 'Task has a note')"
@click="openAppSidebarTab($event, 'app-sidebar-tab-notes')"
@dblclick.stop="openAppSidebarTab($event, 'app-sidebar-tab-notes', true)" />
-
+
{{ dueDateShort }}
{{ dueDateLong }}
@@ -289,10 +289,9 @@ export default {
}),
dueDateShort() {
- const taskDate = this.task.startMoment.isValid() ? this.task.startMoment : this.task.dueMoment
if (!this.task.completed) {
- return taskDate.isValid()
- ? taskDate.calendar(null, {
+ return this.task.dueMoment.isValid()
+ ? this.task.dueMoment.calendar(null, {
// TRANSLATORS This is a string for moment.js. The square brackets escape the string from moment.js. Please translate the string and keep the brackets.
lastDay: t('tasks', '[Yesterday]'),
// TRANSLATORS This is a string for moment.js. The square brackets escape the string from moment.js. Please translate the string and keep the brackets.
@@ -328,10 +327,9 @@ export default {
if (this.task.allDay) {
return this.dueDateShort
}
- const taskDate = this.task.startMoment.isValid() ? this.task.startMoment : this.task.dueMoment
if (!this.task.completed) {
- return taskDate.isValid()
- ? taskDate.calendar(null, {
+ return this.task.dueMoment.isValid()
+ ? this.task.dueMoment.calendar(null, {
// TRANSLATORS This is a string for moment.js. The square brackets escape the string from moment.js. Please translate the string and keep the brackets.
lastDay: t('tasks', '[Yesterday at] LT'),
// TRANSLATORS This is a string for moment.js. The square brackets escape the string from moment.js. Please translate the string and keep the brackets.