diff --git a/install.rdf b/install.rdf index b347648..c4c58f8 100644 --- a/install.rdf +++ b/install.rdf @@ -6,7 +6,7 @@ todo.txt@xseth.nl Todo.txt Extension - 0.6 + 0.6.1 2 Roy Kokkelkoren Thunderbird extension for the Todo.txt application diff --git a/modules/todoclient.js b/modules/todoclient.js index f4955a8..aeff8c7 100644 --- a/modules/todoclient.js +++ b/modules/todoclient.js @@ -109,6 +109,13 @@ let todoClient = { createDate = cal.jsDateToDateTime(todoItem.createdDate(), cal.calendarDefaultTimezone()); newItem.entryDate = createDate; } + + // Set due date + if(newItem.dueDate){ + let dueDate = cal.dateTimeToJsDate(newItem.dueDate, cal.calendarDefaultTimezone()); + let dateStr = this.makeDateStr(dueDate); + todoItem.setAddOn('due', dateStr); + } } newItem.id = todoItem.id();