You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Extension Bug] Todoist Doesn't Separate Overdue and Today Tasks in Today View #502
Describe the bug and the current behavior/state.
I have both overdue and today tasks, however the app just shows all of the tasks together without separating the two groups. This works properly in Upcoming View.
When I look at my Today tasks view, all of the task shown are in an “overdue” section, even though most of them should be in another section called “today”. I was explaining that the upcoming tasks view does not have this problem.
I'm not sure I get what you mean. As of today, the upcoming and today views show tasks in an "overdue" section if the due date is before today. I can't reproduce with my local setup.
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
@thomaslombart Hate to risk reviving this unnecessarily, but this is an active bug/oversight. When you open today's tasks, it makes it seem like all the tasks due today are overdue. They are not overdue. They are just due today. It seems this extension mistakes "today" with "overdue" and "today" with "tomorrow". The tasks in the "upcoming" view under "tomorrow"(in todoist) are labeled "today". It's like the extension is a day off.
Here's a screenshot:
The tasks in this screenshot are not overdue—they're due today. Listing them as overdue is incorrect.
Furthermore, here's a screenshot of the "upcoming" view:
The tasks listed under "today" here aren't today's tasks—they're due tomorrow. Listing them as today's tasks is incorrect.
Further days of the week are also incorrect. My Tuesday tasks are labeled today, my Wednesday tasks are labeled tomorrow, and so on. (This was written on a monday).
@lukthony My gut feeling is that there must be something's wrong with timezones. Would you mind sharing what's your timezone so that I make a few tests?
After some investigations, it seems timezones are indeed the root cause of the problem. I can't promise I'll get a fix in the next few days since I'm busy with other work right now, but I'll try to get it done in the next few weeks.
@lukthony Have you switched between timezones recently? For example, did you enter some tasks in Todoist, traveled somewhere, and saw these tasks in Raycast?
I think that's the root cause of the issue. According to Todoist REST API, the date is a "Date in format YYYY-MM-DD corrected to user's timezone."
So, there shouldn't be an issue if you stay within the same time zone. But if you create a task, say at 10 PM, and switch to a timezone that is 4 hours in advance (2 AM), the task will still be considered as a task from yesterday on the API's side while it should be a task due today.
Not sure of that yet, but according to some tests, that seems to be the problem.
@thomaslombart That's interesting, but unfortunately I haven't switched time zones at all recently. Been lingering here in CST for a long time now. Further, I've added more tasks since I first saw the problem, and it persists regardless.
Thanks for the answer. The problem must come from somewhere else then. My other guess is that I'm making comparisons using the Date constructor which returns the date to UTC time, but since Todoist returns tasks to the user's corrected timezones, there can be some mismatches. Working with timezones is always tricky 😅
Activity
thomaslombart commentedon Dec 11, 2021
The overdue tasks are handled in both today and upcoming views. Where do you get the bug?
1aryanpro commentedon Dec 11, 2021
When I look at my Today tasks view, all of the task shown are in an “overdue” section, even though most of them should be in another section called “today”. I was explaining that the upcoming tasks view does not have this problem.
thomaslombart commentedon Dec 14, 2021
I'm not sure I get what you mean. As of today, the upcoming and today views show tasks in an "overdue" section if the due date is before today. I can't reproduce with my local setup.
Can you maybe share a screenshot?
stale commentedon Jan 13, 2022
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
lumirth commentedon Feb 1, 2022
@thomaslombart Hate to risk reviving this unnecessarily, but this is an active bug/oversight. When you open today's tasks, it makes it seem like all the tasks due today are overdue. They are not overdue. They are just due today. It seems this extension mistakes "today" with "overdue" and "today" with "tomorrow". The tasks in the "upcoming" view under "tomorrow"(in todoist) are labeled "today". It's like the extension is a day off.
Here's a screenshot:

The tasks in this screenshot are not overdue—they're due today. Listing them as overdue is incorrect.
Furthermore, here's a screenshot of the "upcoming" view:

The tasks listed under "today" here aren't today's tasks—they're due tomorrow. Listing them as today's tasks is incorrect.
Further days of the week are also incorrect. My Tuesday tasks are labeled today, my Wednesday tasks are labeled tomorrow, and so on. (This was written on a monday).
thomaslombart commentedon Feb 1, 2022
@lukthony My gut feeling is that there must be something's wrong with timezones. Would you mind sharing what's your timezone so that I make a few tests?
lumirth commentedon Feb 1, 2022
@thomaslombart that's a good idea, don't think I would've caught that. I'm in CST, central standard time. (UTC-6)
thomaslombart commentedon Feb 3, 2022
After some investigations, it seems timezones are indeed the root cause of the problem. I can't promise I'll get a fix in the next few days since I'm busy with other work right now, but I'll try to get it done in the next few weeks.
thomaslombart commentedon Feb 5, 2022
@lukthony Have you switched between timezones recently? For example, did you enter some tasks in Todoist, traveled somewhere, and saw these tasks in Raycast?
I think that's the root cause of the issue. According to Todoist REST API, the date is a "Date in format YYYY-MM-DD corrected to user's timezone."
So, there shouldn't be an issue if you stay within the same time zone. But if you create a task, say at 10 PM, and switch to a timezone that is 4 hours in advance (2 AM), the task will still be considered as a task from yesterday on the API's side while it should be a task due today.
Not sure of that yet, but according to some tests, that seems to be the problem.
lumirth commentedon Feb 6, 2022
@thomaslombart That's interesting, but unfortunately I haven't switched time zones at all recently. Been lingering here in CST for a long time now. Further, I've added more tasks since I first saw the problem, and it persists regardless.
thomaslombart commentedon Feb 6, 2022
Thanks for the answer. The problem must come from somewhere else then. My other guess is that I'm making comparisons using the
Dateconstructor which returns the date to UTC time, but since Todoist returns tasks to the user's corrected timezones, there can be some mismatches. Working with timezones is always tricky 😅thomaslombart commentedon Feb 20, 2022
@lukthony I worked a bit on the extension this weekend. I found a fix that hopefully will fix timezone issues: #952.
lumirth commentedon Feb 23, 2022
Works like a charm on my end! Tasks all have correct dates, as far as I can tell. Thanks for everything :]
Add figa extension (#28228)
Add figa extension (raycast#28228)
Add nyxe extension (#31572)
Add app-icons extension (#33140)