Is there a way to define timestamp serialisation in restful webservices, so I can exclude time zone?
@GET
@Path("{id}")
@Produces(MediaType.APPLICATION_JSON)
public Dto getById(@PathParam("id") Id id) { /**...**/ }
This produces json carrying timestamps formatted like this: 2014-12-14T16:29:52.416371+02:00
and I need only: 2014-12-14T16:29:52.416371
EDIT ISO 8601 format would do fine instead