Skip to content

Commit

Permalink
fixed files form Time #7
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 4542ff0 commit 135a361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -705,9 +705,9 @@ public int parseInto(ReadWritableInstant instant, String text, int position) {

long instantMillis = instant.getMillis();
Chronology chrono = instant.getChronology();
int defaultYear = DateTimeUtils.getChronology(chrono).year().get(instantMillis);
long instantLocal = instantMillis + chrono.getZone().getOffset(instantMillis);
chrono = selectChronology(chrono);
int defaultYear = chrono.year().get(instantLocal);

DateTimeParserBucket bucket = new DateTimeParserBucket(
instantLocal, chrono, iLocale, iPivotYear, defaultYear);
Expand Down

0 comments on commit 135a361

Please sign in to comment.