aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-22 11:40:02 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-22 11:40:02 +1200
commita7296d99876000e65bef9b9df708f57ebabbe894 (patch)
tree27175047d4b59b55c3e59d5bfafff96255570202 /src/org/traccar/database
parent02d5eb894a4c5f5fe8270303af2c8ba4be03b530 (diff)
downloadtraccar-server-a7296d99876000e65bef9b9df708f57ebabbe894.tar.gz
traccar-server-a7296d99876000e65bef9b9df708f57ebabbe894.tar.bz2
traccar-server-a7296d99876000e65bef9b9df708f57ebabbe894.zip
Fix date formatting (fix #4063)
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/StatisticsManager.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/database/StatisticsManager.java b/src/org/traccar/database/StatisticsManager.java
index c2011a878..735c1f1a7 100644
--- a/src/org/traccar/database/StatisticsManager.java
+++ b/src/org/traccar/database/StatisticsManager.java
@@ -23,7 +23,6 @@ import org.traccar.model.Statistics;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Form;
import java.sql.SQLException;
-import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
import java.util.HashSet;
@@ -72,7 +71,7 @@ public class StatisticsManager {
String url = Context.getConfig().getString("server.statistics");
if (url != null) {
- String time = DateTimeFormatter.ISO_DATE_TIME.format(statistics.getCaptureTime().toInstant());
+ String time = Context.DATE_FORMATTER.format(statistics.getCaptureTime().toInstant());
Form form = new Form();
form.param("version", Context.getAppVersion());