It seems like setting the time in the Docker-Container did the job.
Don't know why but today i trye'd to insert some data and the date is ok.
The query is just the standard mean with time-window in InfluxDB
from(bucket: "stromzaehler")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "1222323")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
Here comes the flow-json-export
[{"id":"1d309d49f4c62878","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"b9e9508e71065579","type":"debug","z":"1d309d49f4c62878","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":380,"y":40,"wires":[]},{"id":"b7b74e122516f074","type":"influxdb out","z":"1d309d49f4c62878","influxdb":"06b701234eeb0410","name":"out","measurement":"","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"ms","retentionPolicyV18Flux":"","org":"hell@home","bucket":"stromzaehler","x":370,"y":80,"wires":[]},{"id":"1e925e6389d8b6aa","type":"inject","z":"1d309d49f4c62878","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":90,"y":60,"wires":[["9e231fbea462b298"]]},{"id":"9e231fbea462b298","type":"function","z":"1d309d49f4c62878","name":"function 5","func":"msg.measurement = 1222323\nmsg.payload = {\n value: 424892348923\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"moment","module":"moment"}],"x":220,"y":60,"wires":[["b9e9508e71065579","b7b74e122516f074"]]},{"id":"06b701234eeb0410","type":"influxdb","hostname":"quintsor-castle.de","port":"8086","protocol":"http","database":"database","name":"","usetls":false,"tls":"","influxdbVersion":"2.0","url":"http://89.58.12.194:8086","rejectUnauthorized":false}]
The problem was consistent.
Thanks for your time and effort!