aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/StatisticsResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-01 10:55:19 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-01 10:55:19 +0500
commitfdc61388a4f86bbd7fc7034fcf672486910eb58c (patch)
treee61c162edfe823f7f97226c097ac2173ccff3f96 /src/org/traccar/api/resource/StatisticsResource.java
parent1ea8569eb87a714d6b2e2b817d05190dd3784384 (diff)
downloadtrackermap-server-fdc61388a4f86bbd7fc7034fcf672486910eb58c.tar.gz
trackermap-server-fdc61388a4f86bbd7fc7034fcf672486910eb58c.tar.bz2
trackermap-server-fdc61388a4f86bbd7fc7034fcf672486910eb58c.zip
Move parseDate to DateUtil
Diffstat (limited to 'src/org/traccar/api/resource/StatisticsResource.java')
-rw-r--r--src/org/traccar/api/resource/StatisticsResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/StatisticsResource.java b/src/org/traccar/api/resource/StatisticsResource.java
index e737560ef..f63fc0ddb 100644
--- a/src/org/traccar/api/resource/StatisticsResource.java
+++ b/src/org/traccar/api/resource/StatisticsResource.java
@@ -17,8 +17,8 @@ package org.traccar.api.resource;
import org.traccar.Context;
import org.traccar.api.BaseResource;
+import org.traccar.helper.DateUtil;
import org.traccar.model.Statistics;
-import org.traccar.web.JsonConverter;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
@@ -38,7 +38,7 @@ public class StatisticsResource extends BaseResource {
public Collection<Statistics> get(
@QueryParam("from") String from, @QueryParam("to") String to) throws SQLException {
Context.getPermissionsManager().checkAdmin(getUserId());
- return Context.getDataManager().getStatistics(JsonConverter.parseDate(from), JsonConverter.parseDate(to));
+ return Context.getDataManager().getStatistics(DateUtil.parseDate(from), DateUtil.parseDate(to));
}
}