Fix date formatting

This commit is contained in:
Oscar Utbult 2016-12-05 21:32:44 +01:00 committed by Dave Syer
parent 5b0f037d06
commit 45da5a4d3b
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ public class Pet extends NamedEntity {
@Column(name = "birth_date")
@Temporal(TemporalType.DATE)
@DateTimeFormat(pattern = "yyyy/MM/dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date birthDate;
@ManyToOne

View file

@ -39,7 +39,7 @@ public class Visit extends BaseEntity {
@Column(name = "visit_date")
@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat(pattern = "yyyy/MM/dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date date;
@NotEmpty