Git Product home page Git Product logo

Comments (2)

michaelpporter avatar michaelpporter commented on June 27, 2024 1

I did some debugging, not sure how to fix it but here is the issue

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 #2021-05-16 this gets set to Sat May 15 2021 19:00:00 GMT-0500 (Central Daylight Time) in obsidian. The isToday function compares the Year Month Date values but the date is never set back to GMT.

[obsidian-plugin-todo] - istoday true - date Sat May 15 2021 19:00:00 GMT-0500 (Central Daylight Time) - today Sat May 15 2021 00:00:00 GMT-0500 (Central Daylight Time)
        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());
        };

from obsidian-plugin-todo.

larslockefeer avatar larslockefeer commented on June 27, 2024 1

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.

from obsidian-plugin-todo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.