Please have a look at the attached flow.
Why does moment in a moment node deliver a different result as moment in change node?
[{"id":"8d803f5dd58c9965","type":"debug","z":"db81a52a5a9665c2","name":"debug 2458","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":790,"y":1100,"wires":[]},{"id":"480ecf6bab01aea5","type":"change","z":"db81a52a5a9665c2","name":"timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment(msg.payload).tz(\"Europe/Berlin\").format(\"x\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1040,"wires":[["8d803f5dd58c9965","6858c4f9e723dd6c","d4c0997082ea3cdd"]]},{"id":"c2cb935566602f4c","type":"inject","z":"db81a52a5a9665c2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1700926319561","payloadType":"num","x":300,"y":1040,"wires":[["96eb10de94187b96"]]},{"id":"96eb10de94187b96","type":"change","z":"db81a52a5a9665c2","name":"HH:mm:ss DD-MM-YYYY","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment(payload).tz(\"Europe/Berlin\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":1040,"wires":[["480ecf6bab01aea5","6a4c5b0b1a2daa20"]]},{"id":"6a4c5b0b1a2daa20","type":"debug","z":"db81a52a5a9665c2","name":"debug 2459","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":1100,"wires":[]},{"id":"6858c4f9e723dd6c","type":"change","z":"db81a52a5a9665c2","name":"YYYY-MM-DD HH:mm:ss","rules":[{"t":"set","p":"payload","pt":"msg","to":"$moment(msg.payload).tz(\"Europe/Berlin\").format(\"YYYY-MM-DD HH:mm:ss\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":1100,"wires":[["90d7399b218087cf"]]},{"id":"90d7399b218087cf","type":"debug","z":"db81a52a5a9665c2","name":"debug 2460","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1110,"y":1140,"wires":[]},{"id":"d4c0997082ea3cdd","type":"moment","z":"db81a52a5a9665c2","name":"","topic":"","input":"","inputType":"msg","inTz":"Europe/Berlin","adjAmount":0,"adjType":"days","adjDir":"add","format":"YYYY-MM-DD HH:mm:ss","locale":"de-DE","output":"","outputType":"msg","outTz":"Europe/Berlin","x":1080,"y":980,"wires":[["d77fe04c051c9f6d"]]},{"id":"d77fe04c051c9f6d","type":"debug","z":"db81a52a5a9665c2","name":"debug 2461","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1090,"y":1020,"wires":[]}]