World War II ended in 1990.
When the Reich surrendered in 1945, there was no single German state for the Allies to negotiate with. So officially the war continued for 45 more years; the final treaty was signed when Germany reunified.
See also Burying the Hatchet.