java spring boot json deserialize date inaccurate

Java
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", timezone = "Europe/Madrid")
Source

Also in Java: