Roald Dahl's Charlie and the Chocolate Factory (1964) does not take place in a specific calendar year. It is a timeless fable deliberately unmoored from historical context.
The story's setting—an unnamed, somewhat dystopian British city and the fantastical chocolate factory—operates in a perpetual "once upon a time" present. There are no references to contemporary events, technology, politics, or monarchs that would fix it in a particular year. This ambiguity allows each generation of readers to imagine the story unfolding in their own "now."
Both film adaptations (1971, 2005) similarly avoid a specific year, though their production design reflects their respective eras.