home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.96k stars 2.68k forks source link

Editing a todo list item due date and saving causes date to be out by one day. Google Tasks Integration. #21803

Open markusg1234 opened 2 weeks ago

markusg1234 commented 2 weeks ago

Checklist

Describe the issue you are experiencing

When adding a todo item for google tasks and then saving a date. What will save is the day before the date selected..

Describe the behavior you expected

Should save the date selected.

Steps to reproduce the issue

  1. Create a new todo list item. Integration is google tasks.
  2. Edit and add a date.
  3. Save the date.
  4. Now the date will be the day before the one that was selected.

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

unknown

In which browser are you experiencing the issue with?

Google Chrome 128.0.6613.84

Which operating system are you using to run this browser?

Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 2 weeks ago

I'll guess this is probably not a frontend issue. What you can do for debug is open a separate tab on developer-tools/event and add a listener for call_service. Then when you save the todo item, you should see this:

Event 0 fired 5:20 AM:

event_type: call_service
data:
domain: todo
service: update_item
service_data:
item: 7e465a18-646e-11ef-bb38-f7eaa6c2412a
rename: Test
status: needs_action
description: null
due_date: "2024-09-30"
entity_id:
- todo.todo
origin: LOCAL
time_fired: "2024-08-27T12:20:51.612719+00:00"
context:
id: 01J69WG7RWA9W8CKMGXVK2FPYE
parent_id: null
user_id: f4e7321cdf6145c9a7a2e615a5487d10

If the values in the service_data are as expected, you would need to follow this up as a core issue with the google tasks integration.

markusg1234 commented 2 weeks ago

Hi, did the test and the call_service showed the correct date entered when saved. Set the date to 30/08/2024. In the Todo list after saving it shows 29/08/2024.

Also if I set the date to say 31/08/2024 and save it. It will appear as 30/08/2024. If I then edit again and just save it and not change the date it will then show 29/08/2024.

Thought I would report it here as found an issue from Jan that seems to be the same issue. I will report it as core issue.

https://github.com/home-assistant/frontend/issues/19270

event_type: call_service data: domain: todo service: update_item service_data: item: T3BiUTE1OEdPb0QyTjhYZg rename: test status: needs_action description: null due_date: "2024-08-30" entity_id: