Hello everyone, I have an issue with DateTime. I searched the forum, but other issues seem to be different from mine.
Below I attached a screenshot from execution log. Here I use an Edit Fields node to convert the timestamp I get from a Data Table → Get Rows node. The preview shows it should work fine, but the actual output gives me “Invalid DateTime“.
$json.open_record.updatedAt is already a string. But anyway I tried to force the value into a string - it doesn’t help, I am still getting the same issue
This would return a DateTime object, but I need a formatted string
Okay, I’ve made a simple workflow to share. It would be nice if you can try running this on your instance and see if it behaves the same. You can query any DB that has at least 1 record - it should have the “updatedAt” field by default.
Yep…. @enraged_tomato
The behaviour with the DateTime from the data tabels is at runtime your expression is handleded as object(but if you run the code directly it treatwed as string.), tried 2 ways…
Now, the other option is opposite, if you run the workflow, is not valid, and run individual node is valid.