Extended data: Last record of the day is wrong. It is the first record of the following day

The last data of the day, recorded by Pvoutput, is the first data of the following day.
This, in my case, is coursing problem in the summary of the Energy_Sold which is a cumulative data collected by the inverter every day and sent to Pvoutput.
At midnight, the inverter reset this counter to start to cumulate the Energy_Sold in the new day.

Here what happens, see the last record, this record should belong to the day after:

Is the Extended Data being uploaded using the API (e.g. addstatus) or Auto Uploader?

The Extended Data are uploaded using the API

The last record represents the last 5 minutes of the day i.e. 23:55 to 24:00.

It appears when sending d=20250730 and t=23:58 or t=23:59. The time is rounded to the nearest 5 minutes or 0:00 on the next day but still belongs the 20250730 data set.

Ok, thanks, understood. Do you have any hint or workaround to apply to avoid this problem?