Skip to content
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

can you please make the time dynamic? #59

Open
karimomaya opened this issue Oct 7, 2023 · 2 comments
Open

can you please make the time dynamic? #59

karimomaya opened this issue Oct 7, 2023 · 2 comments

Comments

@karimomaya
Copy link

localDateString = localDateString + "T08:00";

@YoungJY1
Copy link

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
Copy link

morficus commented Dec 1, 2023

@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?

@morficus morficus mentioned this issue Dec 1, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants