storage: do not include to_timestamp in the range

We used to include the data point for to_timestamp, now we stop just
before it.

Change-Id: I3abd007c5e700e18bb7a8336239c29447dd8b065
Merge "storage: do not include to_timestamp in the range"