HeroBlackInk / ultimate-todoist-sync-for-obsidian

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

can you please make the time dynamic? #59

Open karimomaya opened 11 months ago

karimomaya commented 11 months ago

https://github.com/HeroBlackInk/ultimate-todoist-sync-for-obsidian/blob/677e1b1749e251a116eadf7ea2f4c11c3b10bd4e/src/todoistRestAPI.ts#L14

YoungJY1 commented 10 months ago

I don't know much about coding. And I don't know if it's the correct method or not. But After modifying it as shown below, I confirmed that even if I change the time in 'todoist', it does not go back to '08:00'.

// localDateString = localDateString + "T08:00"; // let localDateObj = new Date(localDateString); // let ISOString = localDateObj.toISOString() // let utcDateString = ISOString.slice(0,10) // return(utcDateString); return null

If there is a better way, please share

morficus commented 9 months ago

@karimomaya I can open a PR for this. Do you have a preferred syntax in mind for specifying time?

Standard ISO-8601 format (2023-01-01T18:00:00Z+5:00) is not very user-friendly to type since it sues 24hr time and requires an offset.

One idea I had was to use the ⏰ emoji, so you could do something like Take out the trash 📆2023-01-01 ⏰2:30pm #todoist

cc: @HeroBlackInk any thoughts on this?