Hi,
I am trying so compare a due-date YYYY-MM-DD with today for an automazation.
The code is attached as picture. Sorry, I get errors while copying.
I get the following error:
Fehler: Error rendering data template: TypeError: can’t compare offset-naive and offset-aware datetimes
Can someone guide me?
In the future, please follow Question Guideline #14 & 11 and share configuration as properly formatted text, not a screenshot.
{%- if task.due is defined and task.due|as_datetime|as_local <= now() %}
Thank you very much! Did not get there…
And yes, you are right. I don’t know why my code was translated to html with „%20“ everywhere. I really appreciate that you helped here although this was just a screenshot.