home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.88k stars 30.11k forks source link

Google tasks due date off by one #110165

Open CodeFatherG opened 7 months ago

CodeFatherG commented 7 months ago

The problem

Calling service to add a task to a Google tasks Todo entity with a date causes the task to be due the previous day on the Google calendar.

What version of Home Assistant Core has the issue?

2024.2.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Tasks

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

service: todo.add_item
metadata: {}
data:
  item: Empty Vacuum
  due_date: "{{ now().date() }}"
target:
  entity_id: todo.home_assistant_notifications

Anything in the logs that might be useful for us?

No response

Additional information

I have a work around using due_date: "{{ (today_at() + timedelta(days=1)).date() }}" to add a day to the date

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

CodeFatherG commented 4 months ago

Still not fixed. I do an off by one to solv it but still broken

Timschuu commented 2 months ago

Same here. Also providing an exact time for the task doesnt work.

Edit: Time doesnt seem to be supported by the Google Tasks API, sadly. https://developers.google.com/tasks/reference/rest/v1/tasks#Task