Converting an attribute epoch timestamp to datetime
Searched for this and have not found the solution or I'm having the stupids.
From an API I get a JSON file that I then use the EvaluateJsonPath processor to add an attribute to the flow file.
One of these attributes is "date_posted" which is in epoch, seconds since 1st Jan 1970.

I need to convert this into a date format so using the UpdateAttribute processor.
I have tried these
${date_posted:multiply(1000):format("yyyy-MM-dd HH:mm:ss","GMT")}
${date_posted:toNumber():multiply(1000):format("yyyy-MM-dd HH:mm:ss","GMT")}
and even for testing just these:
${date_posted:toNumber()}
${date_postedmultiply(1000)}
${date_posted:toNumber():multiply(1000)}
Yet afterwards my date_posted attribute ends up with an empty string:

What am I missing?

