You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicJacksonJodaDateFormatwith(JsonFormat.Valueann) {
JacksonJodaDateFormatformat = this;
format = format.withLocale(ann.getLocale());
format = format.withTimeZone(ann.getTimeZone());
format = format.withFormat(ann.getPattern().trim());
The withFormat() call overwrites the DateTimeFormatter created by withTimeZone() call.
So the resulting object in the _formatter field of JacksonJodaDateFormat will have the iZone field value set to null.