I found that when you select a due_date without any section, this method didn't work in some cases.

But it could be wrong.