Does diesel last indefinitely?
Pretty much. One can add a little stabilizer. But people use a fuel oil tank in a lodge or cabin for decades without doing anything. And, diesel is safe to pump with a little hand pump or a battery operated one, unlike gasoline.
When the SHTF there is no gasoline in hours.