diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-16 10:30:56 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-16 10:30:56 +1300 |
commit | 14a1d5989a66d824d4ff23f02c6b95c0db9e8541 (patch) | |
tree | 47e7f72b8c9df54f8dfac112962232dfbbb30cb7 /src/org/traccar/api/ObjectMapperProvider.java | |
parent | d2a5ae1237b001560900d99dcb0e7f33ff4de39e (diff) | |
download | trackermap-server-14a1d5989a66d824d4ff23f02c6b95c0db9e8541.tar.gz trackermap-server-14a1d5989a66d824d4ff23f02c6b95c0db9e8541.tar.bz2 trackermap-server-14a1d5989a66d824d4ff23f02c6b95c0db9e8541.zip |
Change serialization date format again
Diffstat (limited to 'src/org/traccar/api/ObjectMapperProvider.java')
-rw-r--r-- | src/org/traccar/api/ObjectMapperProvider.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/ObjectMapperProvider.java b/src/org/traccar/api/ObjectMapperProvider.java index 7e6d66eb6..50e8a3f3a 100644 --- a/src/org/traccar/api/ObjectMapperProvider.java +++ b/src/org/traccar/api/ObjectMapperProvider.java @@ -16,6 +16,7 @@ package org.traccar.api; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; import javax.ws.rs.ext.ContextResolver; import javax.ws.rs.ext.Provider; @@ -27,8 +28,7 @@ public class ObjectMapperProvider implements ContextResolver<ObjectMapper> { private ObjectMapper mapper = new ObjectMapper(); public ObjectMapperProvider() { - mapper.setConfig(mapper.getSerializationConfig().with( - new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"))); + mapper.setConfig(mapper.getSerializationConfig().without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)); } @Override |