diff options
author | Abyss777 <abyss@fox5.ru> | 2016-11-24 10:45:44 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-11-24 10:45:44 +0500 |
commit | 0bbf8f554638cdc89d5dd618c500839554602dee (patch) | |
tree | 86616330311bc5c46bab0733af70238f624196f6 /src/org/traccar/helper/DateUtil.java | |
parent | b14169a2b7bfcaecaa0f5ea9baafad4e7e4f1ae2 (diff) | |
download | trackermap-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.java | 5 |
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); } } |