Closed 4ependoZzz closed 3 months ago
Hi, every time when I input due date in obsidian task or task in ticktick this date update after sync with "undefined" and I can not use tasks in obsidian and tick tick
TickTickSync dates are all in YYYY-MM-DD format to comply with Task dates. Can you tell me what you are expecting to see instead of undefined?
Also:
I know that the date format in TickTick is YYYY-MM-DD. I found confirmation of this here: TickTick Developer
Instead of "undefined," I expected to see 📅 2024-03-17.
Also:
It might also be useful for investigating my issue. I also tried installing the Ultimate Todoist Sync plugin in another obsidian vault. With it, this problem did not occur. I think the issue is not with the date format on the Obsidian side.
What platform is this happening in?
3.1. In Obsidian, I enter the date through the task menu. Afterward, it ends up at the end of the task in normal form.
Are you putting in a scheduled date or a due date?
Please do this:
Please enter a task using the same method, but do NOT add the TickTick tag. copy the line from the .md file and paste it here.
using your favorite method (Ctrl-Shift-I in Windows. Don't know what it is in other platforms) go to the debug console.
In the console type in console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)
and let me know what you see.
is what I see...
In Ticktick, what time zone do you have?
It looks like we're losing year and day in the time zone conversion (the two undefineds.)
The setup is the same on both platforms (win, android) I put in due date
the task takes this form immediately after entering the tag
and after a few seconds
If we were losing a year and a day during the date conversion, then between undef we would only get the month, but we see the full correct date in another format.
I'm sorry, I'm not able to reproduce this. I have set my timezone the same as yours on both Windows and Android. All working as designed.
I have not tested this with any language other than English. Is it possible that we are running into a language difference problem?
Could you please
<your vault root>\.obsidian\plugins\tickticksync
Sorry, I can't download this file (main.zip) Error 54113 the same in this discussion error 54113
Let's try this: https://github.com/thesamim/TickTickSync/blob/65-enable-plugin-on-android-mobile/dist/TickTickSyn-1.0.18-Test.zip and click on download.
I got it))
yellow hilight looks provocative
Thanks! That was helpful.
I believe I found the issue: date.toLocaleString is returning date in your locale format, but I was not accounting for the difference in formats. I have made a change to always get the local time in the format the code is expecting.
If you could check two things please:
undefined-17.03.2024-undefined
any longerPlease download: https://github.com/thesamim/TickTickSync/blob/65-enable-plugin-on-android-mobile/dist/TickTickSyn-1.0.18-Test.zip again and let me know if that did, indeed, fix the problem.
Hi, the archive is corrupt. Upload one more please
@4ependoZzz : it downloaded fine for me. But anyway: I deleted it and added back to repository. Please try again.
@thesamim my browser has lost its head)) I tested the latest version Everything is fine!!!)) thank you very much for the quick solution to the issue!!!
You're welcome. Thanks for your patience and help.
I will put out a new release in the couple of days.