Date & time node transforming null to 19700101

Describe the problem/error/question

When an date & time node receives null. It will still transform it to a date. In my opinioin this does not make sense. It should just leave it null. I have tried other methods to skip the node with a IF node but then other problems arrives in the rest of the flow as the node is not executed but there is a link to it.

What is the error message (if any)?

[ERROR: no data, execute “Node name” node first]

Please share your workflow

Share the output returned by the last node

I expect the input as output.

Information on your n8n setup

  • n8n version: Version 1.1.1

Hi @timautomation, I am sorry you’re having trouble. I shall add this to our bug tracker for a closer look and fix. This might not get the highest priority though since a more capable alternative to the Date & Time node is available.

So perhaps you want to consider using the Set node until this is fixed, like shown below?

This would preserve null values:

1 Like

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

New version [email protected] got released which includes the GitHub PR 7050.

1 Like