From 9c9370f72c51d7466d3b25a59264ee98f4319b3a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 8 Nov 2018 13:37:38 +1300 Subject: Fix time formatting issues --- src/org/traccar/database/StatisticsManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org/traccar/database/StatisticsManager.java') diff --git a/src/org/traccar/database/StatisticsManager.java b/src/org/traccar/database/StatisticsManager.java index 735c1f1a7..4e656bfd8 100644 --- a/src/org/traccar/database/StatisticsManager.java +++ b/src/org/traccar/database/StatisticsManager.java @@ -18,6 +18,7 @@ package org.traccar.database; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.Context; +import org.traccar.helper.DateUtil; import org.traccar.model.Statistics; import javax.ws.rs.client.Entity; @@ -71,7 +72,7 @@ public class StatisticsManager { String url = Context.getConfig().getString("server.statistics"); if (url != null) { - String time = Context.DATE_FORMATTER.format(statistics.getCaptureTime().toInstant()); + String time = DateUtil.formatDate(statistics.getCaptureTime()); Form form = new Form(); form.param("version", Context.getAppVersion()); -- cgit v1.2.3