aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/ObjectMapperProvider.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-26 22:16:26 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-26 22:16:26 +1300
commit0ff4530e766900954ac8e621143304e237c2d7e4 (patch)
treeba3c7a1218fee765f629f8852eb67cac307eddbd /src/org/traccar/api/ObjectMapperProvider.java
parentd4cb00859825fefa286be9035212e3c80fbf3e23 (diff)
downloadtrackermap-server-0ff4530e766900954ac8e621143304e237c2d7e4.tar.gz
trackermap-server-0ff4530e766900954ac8e621143304e237c2d7e4.tar.bz2
trackermap-server-0ff4530e766900954ac8e621143304e237c2d7e4.zip
Include seconds in the timestamps (fix #1623)
Diffstat (limited to 'src/org/traccar/api/ObjectMapperProvider.java')
-rw-r--r--src/org/traccar/api/ObjectMapperProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/ObjectMapperProvider.java b/src/org/traccar/api/ObjectMapperProvider.java
index b8c0efad2..b68f9a458 100644
--- a/src/org/traccar/api/ObjectMapperProvider.java
+++ b/src/org/traccar/api/ObjectMapperProvider.java
@@ -29,7 +29,7 @@ public class ObjectMapperProvider implements ContextResolver<ObjectMapper> {
private ObjectMapper mapper = new ObjectMapper();
public ObjectMapperProvider() {
- DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
+ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
mapper.setConfig(mapper.getSerializationConfig().with(dateFormat));