The EU does enforce a "2-year warranty", but it's not what you think. (Speaking as a German:) When you want to replace a broken product under the mandated warranty, then:
- In the first 6 months after purchase, the merchant must replace the product unless they can prove the defect was not present at purchase.
- After 6 months, the burden of proof reverses, and the customer must prove that the defect in question was already present at purchase.
In practice, whatever party has the burden of proof usually doesn't bother. So in effect, "6-month warranty" is a much more realistic description of this 2-year warranty.
(The fine print: Many vendors offer their own voluntary warranty on top of the mandated one. And I don't know if the rules are different in other EU countries.)