HeroBlackInk / ultimate-todoist-sync-for-obsidian

GNU General Public License v3.0
145 stars 20 forks source link

due date + 1day between apps sync (obsidian-todoist-sunsama) #48

Open snoweater001 opened 1 year ago

snoweater001 commented 1 year ago

for example..

I created a task for October 1st in Obsidian and synced it to Todoist. The task for October 1st appeared in the Todoist interface. In the Todoist tab of Sunsama, the task for October 1st (test task from Obsidian) is visible.

And I registered this task as a task for October 1st in Sunsama. However, as soon as I registered it, the task for October 1st in Todoist (shown in the bottom screen) changed to October 2nd. The time zones of all three programs are same

sunsama 2023-10-01 Todoist, obsidian 2023-10-02

Firstly I contacted to sunsama app, and they replied like this.. -> When Obsidian creates the task, it's incorrectly adding an extra 8 hours to the time which it shouldn't if it wants to indicate that something is due on a certain day but not a certain time...

So I edited three lines from file(main.js) of your plugin // localDateString = localDateString + "T08:00"; ::: I comment out this one let localDateObj = new Date(localDateString);

After that, at least the date synchronization between Obsidian, Todoist, and Sunsama seems to be working correctly.

The reason for adding 8 hours to the due date and the potential issues that arise when removing that part are not known to me. Is there any other alternative solution?