minor fix
This commit is contained in:
parent
044a7f19e4
commit
da30c3cb42
|
@ -12,7 +12,7 @@ import com.fasterxml.jackson.databind.JsonDeserializer;
|
|||
|
||||
public class CustomDateDeserializer extends JsonDeserializer<Date> {
|
||||
|
||||
private static SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
|
||||
private SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
|
||||
|
||||
@Override
|
||||
public Date deserialize(final JsonParser jsonparser, final DeserializationContext context) throws IOException, JsonProcessingException {
|
||||
|
|
|
@ -11,7 +11,7 @@ import com.fasterxml.jackson.databind.SerializerProvider;
|
|||
|
||||
public class CustomDateSerializer extends JsonSerializer<Date> {
|
||||
|
||||
private static SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
|
||||
private SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
|
||||
|
||||
@Override
|
||||
public void serialize(final Date value, final JsonGenerator gen, final SerializerProvider arg2) throws IOException, JsonProcessingException {
|
||||
|
|
Loading…
Reference in New Issue