Time alignment of history for multiple sensors

As you can see from the attached screenshot, I am getting readings from different sensors which are slightly misaligned in time. Is there any way to nudge historical values for a sensor back or forward in time so that the charts line up? I had the idea to create a helper which takes the true reading and alters the timestamp, but not sure how. Thanks!