aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
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/helper
parent02d5eb894a4c5f5fe8270303af2c8ba4be03b530 (diff)
downloadtrackermap-server-a7296d99876000e65bef9b9df708f57ebabbe894.tar.gz
trackermap-server-a7296d99876000e65bef9b9df708f57ebabbe894.tar.bz2
trackermap-server-a7296d99876000e65bef9b9df708f57ebabbe894.zip
Fix date formatting (fix #4063)
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/DateUtil.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/helper/DateUtil.java b/src/org/traccar/helper/DateUtil.java
index 458c74609..e09ac6d0e 100644
--- a/src/org/traccar/helper/DateUtil.java
+++ b/src/org/traccar/helper/DateUtil.java
@@ -15,8 +15,9 @@
*/
package org.traccar.helper;
+import org.traccar.Context;
+
import java.time.Instant;
-import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
@@ -58,7 +59,7 @@ public final class DateUtil {
}
public static Date parseDate(String value) {
- return Date.from(Instant.from(DateTimeFormatter.ISO_DATE_TIME.parse(value)));
+ return Date.from(Instant.from(Context.DATE_FORMATTER.parse(value)));
}
}