Skip to content

JsonFormat does not affect serialisation of Date #4065

Closed
@marccollin

Description

@marccollin

i use spring boot 1.3.0 (tried to 1.3.0.M5), spring-data-jpa, spring rest and mysql.
i use java 8.

In my dto i have

@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd/MM/yyyy", timezone="EST")
private Date birthdate;

client still continue to receive yyyy-mm-dd

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions