152It should be recalled that amending legislation applies, unless otherwise provided, to the future consequences of situations which arose under earlier legislation. That is so except for situations originating and becoming definitive under the previous legislation, which create acquired rights. A right is considered to be acquired when the event giving rise to it occurred before the legislative amendment. However, that is not the case when the event creating the right did not take place under the legislation that has been amended (see judgment in Centeno Mediavilla and Others v Commission, cited in paragraph 94 above, EU:C:2008:767, paragraphs 61 to 63 and the case-law cited).