In the mean time I've found it:
getYear()
Deprecated - Returns the year in the specified date according to local time. Use getFullYear instead.
Using getFullYear fixes the problem
getYear()
Deprecated - Returns the year in the specified date according to local time. Use getFullYear instead.
Using getFullYear fixes the problem