I would sort the array so the times are in order.
Then just add 1 hour.
At 8.15 the data would update. so you get the right times.
e.g.
[{"id":"2891406fda7184f6","type":"inject","z":"2493d0f1b4d72d1b","name":"fetch data at 8:15","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{\"timestamp\":\"2023-10-22T22:00:00.000Z\",\"price\":345.22,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-22T23:00:00.000Z\",\"price\":286.95,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T00:00:00.000Z\",\"price\":284.39,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T01:00:00.000Z\",\"price\":282.53,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T02:00:00.000Z\",\"price\":325.91,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T03:00:00.000Z\",\"price\":549.82,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T04:00:00.000Z\",\"price\":354.41,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T05:00:00.000Z\",\"price\":399.19,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T06:00:00.000Z\",\"price\":439.55,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T07:00:00.000Z\",\"price\":429.43,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T08:00:00.000Z\",\"price\":416.76,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T09:00:00.000Z\",\"price\":553.66,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T10:00:00.000Z\",\"price\":556.22,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T11:00:00.000Z\",\"price\":549.94,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T12:00:00.000Z\",\"price\":551.8,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T13:00:00.000Z\",\"price\":556.22,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T14:00:00.000Z\",\"price\":450.26,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T15:00:00.000Z\",\"price\":456.3,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T16:00:00.000Z\",\"price\":450.37,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T17:00:00.000Z\",\"price\":451.19,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T18:00:00.000Z\",\"price\":444.67,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T19:00:00.000Z\",\"price\":421.18,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T20:00:00.000Z\",\"price\":371.51,\"currency\":\"SEK\",\"area\":\"SE2\"},{\"timestamp\":\"2023-10-23T21:00:00.000Z\",\"price\":279.39,\"currency\":\"SEK\",\"area\":\"SE2\"}]","payloadType":"json","x":460,"y":1020,"wires":[["20ab870bf9f6f6c5"]]},{"id":"20ab870bf9f6f6c5","type":"change","z":"2493d0f1b4d72d1b","name":"","rules":[{"t":"set","p":"tomorrowsprice","pt":"global","to":"$append($$.payload[[2..23]],$$.payload[[0,1]])","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":1020,"wires":[["15eb7370f45911df"]]},{"id":"15eb7370f45911df","type":"debug","z":"2493d0f1b4d72d1b","name":"debug 346","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":980,"wires":[]},{"id":"3315988dc15a1aec","type":"inject","z":"2493d0f1b4d72d1b","name":"get next hour","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":430,"y":1080,"wires":[["6e8ec59c9be2b188"]]}]