aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 13:40:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 13:40:59 +1300
commit2343111919e0cddd63a481edf84e64f5dd46ea92 (patch)
treebe63f7b2cfa401a034efcc46815c67bf39691773 /src/org/traccar/web
parent1f296157a630a81b0799ece8fa9025b0fbba203b (diff)
downloadtraccar-server-2343111919e0cddd63a481edf84e64f5dd46ea92.tar.gz
traccar-server-2343111919e0cddd63a481edf84e64f5dd46ea92.tar.bz2
traccar-server-2343111919e0cddd63a481edf84e64f5dd46ea92.zip
Format date and time in ISO format
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/WebServer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index ebcdc7137..18e013620 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -35,6 +35,7 @@ import org.glassfish.jersey.servlet.ServletContainer;
import org.traccar.Config;
import org.traccar.api.AsyncSocketServlet;
import org.traccar.api.CorsResponseFilter;
+import org.traccar.api.ObjectMapperProvider;
import org.traccar.api.ResourceErrorHandler;
import org.traccar.api.SecurityRequestFilter;
import org.traccar.api.resource.CommandResource;
@@ -129,6 +130,7 @@ public class WebServer {
servletHandler.addServlet(new ServletHolder(new AsyncSocketServlet()), "/socket");
ResourceConfig resourceConfig = new ResourceConfig();
+ resourceConfig.register(ObjectMapperProvider.class);
resourceConfig.register(ResourceErrorHandler.class);
resourceConfig.register(SecurityRequestFilter.class);
resourceConfig.register(CorsResponseFilter.class);