Energy one hour off

I have a meter sending energy usage every hour, about 15-25 seconds after the hour starts.
Energy usage shows up in the energy dashboard one hour late so it’s out of sync with energy prices and solar production.
Energy is “allocated” to the hour the measurement is received, as I understand it. This causes the issue I see.

Is this how the energy dashboard works or have I misunderstood?

Would it be possible to allocate the energy proportionally to the period from the last measurerment to the current mesurement?

Example:

Measurement 1 at 00:00:25: 1 kWh
Measurement 2 at 01:00:25: 2.08 kWh

1.08 kWh has been used during the period from measurement 1 to measurement 2.
There is 3600 seconds between the measurements, so 0,3 Wh every second on average.
Out of those, 3600-25=3575 → 0,3 Wh * 3575 = 1072,5 Wh should be allocated to the first hour and 7,5 Wh to the second hour.

This would also “smooth out” missing measurements and not allocate all to one hour when measurements come back.