From a7296d99876000e65bef9b9df708f57ebabbe894 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 22 Sep 2018 11:40:02 +1200 Subject: Fix date formatting (fix #4063) --- src/org/traccar/helper/DateUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/helper') 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))); } } -- cgit v1.2.3