Today I have come across an issue with java DateTime class not being serialized the way id want to.
I have a field called updatedAt which is of type org.joda.time.DateTime and when I save the document to DB it stores it as follows:
and not the way Id like to (DATE_FORMAT_STRING = “yyyy-MM-dd’T’HH:mm:ss.SSS’Z’”)
I also have this annotation in my model
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DATE_FORMAT_STRING)
Any idea how to fix this so that my field is being serialized properly?