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

Due Date always shows the same time #115

Open
mlcampbe opened this issue Jul 25, 2024 · 1 comment
Open

Due Date always shows the same time #115

mlcampbe opened this issue Jul 25, 2024 · 1 comment

Comments

@mlcampbe
Copy link

I've got the module connecting to my list and pulling the data to display. However, the due date of the items does not seem to be working. If I add 2 entries to the list I do not see a way to add a time of day that they are due. I can add the date (July 25, for example) but not a due time. Therefore looking at the raw data retrieved I see something like this:

body":{"content":"","contentType":"text"},"dueDateTime":{"dateTime":"2024-07-25T05:00:00.0000000","timeZone":"UTC"},"reminderDateTime":{"dateTime":"2024-07-25T18:00:33.7170000","timeZone":"UTC"}}

Note that all entries have the same "T05:00:00" time for them. However, I do see that there is a reminderDateTime that is something this is set.

I tried to modify the MMM-MicrosoftToDo.js and change the line "taskDue = Object.values(element.dueDateTime)" and to use "element.reminderDateTime" instead but that does not work at all. When doing this there are no tasks displayed for me at all.

Any thoughts on how to get a valid reminder time to display?

@thobach
Copy link
Owner

thobach commented Aug 4, 2024

Check out the node_helper.js file as well, which contains the code that parses the response from the Microsoft server and makes it available to the Magic Mirror client. E.g. https://github.com/thobach/MMM-MicrosoftToDo/blob/master/node_helper.js#L252 would need to be amended to also forward the reminderDateTime. But also some other places might need to be amended to retrieve the entries from the server sorted based on the reminderDateTime, etc.

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

2 participants