How long does the crude last uner these conditions? Refined oil products like gas have pretty limited shelf lives (I think 6-12 months for gas).
Diesel and other heavier fuels generally are much closer to aliphatic hydrocarbons (straight chains, not aromatic) and so are much more storable, because aliphatic hydrocarbons have much less opportunity for oxidation (they're like saturated fat, i.e. much more stable).
You can get polymerization inhibitors to put into gasoline if you want it for long term storage, with the caveat that they produce some nastiness at the bottom of tanks that you'll have to avoid when pumping it out, and I think they can also slightly reduce the octane rating.
Fuel companies state that untreated fuel will remain usable for only one year, after which fuel contamination ("the diesel bug") begins to appearGasoline, when it goes bad, goes bad from top to bottom and is not recoverable through e.g. a centrifuge like https://www.youtube.com/watch?v=x4Fdu3e4gYw