Timestamped 1 day old data, how to add it

I have some data that is given with approx. 1 day delay. It is timestamped, just you get it after 1 or 2 days.

I wonder how can you implement this in Home Assistant, that when I would add it it would correctly show in the history when it was measured, i.e. 1 or 2 days ago and not the day the data was entered in HA.

Currently I’m doing this via MQQT so if there’s a solution there, I’m happy to hear, but I’m willing to also write something in python or whatever.