aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-01-03 13:32:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-01-03 13:32:08 +1300
commit0a17447db65e188e8f21000a1e162eb0d73ef1eb (patch)
tree2792f7a0fcfdab8ce48a59ee77a67fe3998fd93d /src/org/traccar/api
parentba3cfd639270dd3115eedd29c832322b01b5b032 (diff)
downloadtraccar-server-0a17447db65e188e8f21000a1e162eb0d73ef1eb.tar.gz
traccar-server-0a17447db65e188e8f21000a1e162eb0d73ef1eb.tar.bz2
traccar-server-0a17447db65e188e8f21000a1e162eb0d73ef1eb.zip
Fix another problem with date format
Diffstat (limited to 'src/org/traccar/api')
-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 b68f9a458..5a9cbb9d9 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:ss'Z'");
+ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
mapper.setConfig(mapper.getSerializationConfig().with(dateFormat));