Weird behaviour on the dates

When asking my AI agent for dates it messes up.
I’ve set up a simple ai agent with open ai, i’ve added

Today's date is: {{ $now }}

to the system message of the tool agent.

when i ask the telegram bot what today’s date is it answers correctly, the same for tomorrow, friday, saturday and sunday. but as soon as I ask for a day in the week to come it messes up.
when i ask “what day is monday” it gives me

I understand you're asking about Monday! Since today is February 19, 2025 (which is a Tuesday), the next Monday will be on February 26, 2025. If you need more information or have something specific in mind, feel free to ask!

as a result. I have no clue what is causing this.

n8n version: latest
Database: Window Buffer Memory
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via: n8n cloud
Operating system: windows 10

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

LLMs are known to be bad at math. I suggest adding a code tool and write your own date handler to help it do reliable date calculations.