package nl.vpro.poel.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class MatchDTO {

    private Long id;

    private String homeTeam;

    private String awayTeam;

    // This doesn't work because posted string does not contain seconds: @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'hh:mm")
    private Date start;

    private Integer homeTeamGoals;

    private Integer awayTeamGoals;
}

@@ -412,10 +412,10 @@
 d'T'
-hh
+HH
 :mm%22

Use the 24-uurs notatie, Luke!