-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To do items #tagged with tomorrow's date appear in the "Today" tab #21
Comments
I did some debugging, not sure how to fix it but here is the The TODO date gets set to a JavaScript date which sets the time to 0's stackoverflow.com Somewhere this date gets converted from GMT to the local time, for me that is Central Time in the US. Starting with
const actionDate = dateMatches != null ? new Date((_a = dateMatches[0]) === null || _a === void 0 ? void 0 : _a.substring(1)) : undefined; const isToday = (date) => {
const today = new Date();
return (date.getDate() == today.getDate() &&
date.getMonth() == today.getMonth() &&
date.getFullYear() == today.getFullYear());
}; |
- converted isToday to use UTC for TODO date - isBeforeToday to use UTC for today. - May not work east of UTC.
Hi @ryadaj, thanks for reporting. This should be fixed by the changes I introduced as part of #35. By installing this plugin directly from source, you should be able to use this. I'm waiting for some others to test-drive this to be sure that it works for everyone and not just for me. Once I get some confirmation, I'll cut a new release that includes the fix, such that all users can upgrade from within Obsidian. |
To do items #tagged with tomorrow's date appear in the "Today" tab. I like that past unfinished items appear in the today tab, but I don't like that tomorrow's items also appear there. Is this possible to change? In the attached screenshot, you will see two items tagged with 2021-04-19 but today is 2021-04-18.
Thank you very much! I love this plugin :)
The text was updated successfully, but these errors were encountered: