Trying to make a Rule on Switch with date and time to get a waiting message list, rule not working

Describe the problem/error/question

I created a workflow based on a tutorial, so I saw it working already. The switch rule gets the timestamp of when the message was sent, and I put a date & time rule that says if the timestamp time is before the now.minus 12 seconds, the rule is false. But is not working as supposed to. When the flow gets to switch node, this rule is running as true. I don’t know if I explained it very good, english is not my first language. If you guy need any more information, I will answer in the comments.

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

I could solve this on the discord channel. I was having 2 problems: 1 - I was trying to make a rule with a data string and a datetime data, both have to be on the same type of data. 2 - since the end of my datetime data was with a Z, I couldn’t figure it out that my time was 0:00 and the $now time was -3:00. So I transformed my string in datetime and take minus 3 hours and 12 seconds on the expression. Hope this could be of help of those who is in need!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.