Yeah, this is one of the major plot holes in Zombie/Apocalypse movies.
You always have scenes of people siphoning gas from abandoned cars years later and it just wouldn't work.
Ready to use gasoline can't last a year, even when stored in ideal circumstances. Crude oil even has a shelf life of only so many years.
It's one more reason everything's going electric. Much easier and safer to sort out electrical storage long term than gasoline.
Me, yelling at the asshole that ruined my life