aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper/DateUtil.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-24 10:45:44 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-24 10:45:44 +0500
commit0bbf8f554638cdc89d5dd618c500839554602dee (patch)
tree86616330311bc5c46bab0733af70238f624196f6 /src/org/traccar/helper/DateUtil.java
parentb14169a2b7bfcaecaa0f5ea9baafad4e7e4f1ae2 (diff)
downloadtrackermap-server-0bbf8f554638cdc89d5dd618c500839554602dee.tar.gz
trackermap-server-0bbf8f554638cdc89d5dd618c500839554602dee.tar.bz2
trackermap-server-0bbf8f554638cdc89d5dd618c500839554602dee.zip
- Use one parser
- Reverted passing variables way
Diffstat (limited to 'src/org/traccar/helper/DateUtil.java')
-rw-r--r--src/org/traccar/helper/DateUtil.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/helper/DateUtil.java b/src/org/traccar/helper/DateUtil.java
index 840f37a7a..de36d4420 100644
--- a/src/org/traccar/helper/DateUtil.java
+++ b/src/org/traccar/helper/DateUtil.java
@@ -24,8 +24,7 @@ import org.joda.time.format.ISODateTimeFormat;
public final class DateUtil {
- private static final DateTimeFormatter DATE_FORMAT = ISODateTimeFormat.dateTime();
- private static final DateTimeFormatter DATE_FORMAT_NOMILLIS = ISODateTimeFormat.dateTimeNoMillis();
+ private static final DateTimeFormatter DATE_FORMAT = ISODateTimeFormat.dateTimeParser();
private DateUtil() {
}
@@ -67,7 +66,7 @@ public final class DateUtil {
}
public static DateTime parseDateTime(String value) {
- return DATE_FORMAT_NOMILLIS.withOffsetParsed().parseDateTime(value);
+ return DATE_FORMAT.withOffsetParsed().parseDateTime(value);
}
}