From 96667716fa137ede47b12b2808d7f0c1bcd742a7 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Tue, 7 Mar 2017 13:14:15 +0100 Subject: [PATCH] fixed files form Time #24 --- .../Time/24/org/joda/time/format/DateTimeParserBucket.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/Time/24/org/joda/time/format/DateTimeParserBucket.java b/projects/Time/24/org/joda/time/format/DateTimeParserBucket.java index b985cef..7c37fc1 100644 --- a/projects/Time/24/org/joda/time/format/DateTimeParserBucket.java +++ b/projects/Time/24/org/joda/time/format/DateTimeParserBucket.java @@ -352,6 +352,11 @@ public long computeMillis(boolean resetFields, String text) { for (int i = 0; i < count; i++) { millis = savedFields[i].set(millis, resetFields); } + if (resetFields) { + for (int i = 0; i < count; i++) { + millis = savedFields[i].set(millis, i == (count - 1)); + } + } } catch (IllegalFieldValueException e) { if (text != null) { e.prependMessage("Cannot parse \"" + text + '"');