Fuel can sit for long time, think winter overs in a home heating oil system (Nr2 fuel), although long term stored fuel creates multiple burner tip cleanings or filter changes.
If you want to be absolutely sure it is safe to use, get one of those pumps as stated above, put a cheap filter on it put in 5gal cans, add 5 gal at time to clean fuel with fuel treatment in it. When you get to bottom of the tank you can jumper the lift pump to run, or even use the lift itself for whole job but remember only (28 gph) if healthy, and drop tank and make sure inside tank is clean.
My concern is that Diesel has a propensity to collect moisture from air rather than evaporate, water(condensation) plus diesel lets algae grow in the fuel, that stays on bottom of your tank, which then can "snot yout sock" or becomes the starter colony to attack new fuel you add to your tank, you can kill it with fuel treatment, but dead algea clogs your filter, if you dont pump & clean, you need to be prepared for that; have a spare or 2 handy until you've gone thru a few tanks of belended "suspect" fuel/refills.
You could just run as is and treat, but you are more at risk to have frequent filter changes, fuel issues overall if you don't "polish the fuel" which is what we used to do in the USN for aviation (JP-5) & propulsion turbine fuels (F-76/Nr 2 Diesel), polish it thru recirc over filters to get as much crud out of it as we could, before refilling helo tanks or propulsion ready for service tanks.