added text option#23
Conversation
|
Hi @yonka2019 Thank you for your contribution. todoist-net/src/Todoist.Net/Models/DueDate.cs Lines 34 to 39 in f53a1b3 Like this public DueDate(string text, DateTime? date = null, string timezone = null, Language language = null)
{
Text = text;
Timezone = timezone;
Language = language;
Date = date;
}What do you think? Also, I believe that the overload needs more clear comments, especially about the text and date parameters. |
|
yeah I think it would be better. |
Yes, I meant comments in the code. |
|
@yonka2019
And it looks like it works, here is the code var item = new Item("demo task") { DueDate = new DueDate("Every day from 20 Apr", language: Language.English) };
await client.Items.AddAsync(item).ConfigureAwait(false);Could you please send me the code that reproduces the issue? |
yeah, I changed the due date to already created item (shifted the date by one, and added recurring of every 3 days. the todoist shows like the recurring is enabled, but really - when you marking the task as done, it doesn't re-creates her-self. |
|
Yeah, managed to reproduce the issue. @yonka2019 |
it makes sense because without that, it will start from X date 21:00 |
Got it. Thank you for your contribution. |
added option to set text and datetime to duedate of item.
This could be used when recurring needed from X date.
'every day from X' isn't really enables recurring, there is a bug.