Skip to content

Commit

Permalink
fixed files form Time #22
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 2f59cd6 commit a1707ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/Time/22/org/joda/time/base/BasePeriod.java
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,13 @@ protected BasePeriod(ReadableDuration duration, ReadableInstant endInstant, Peri
* @param duration the duration, in milliseconds
*/
protected BasePeriod(long duration) {
this(duration, null, null);
super();
// bug [3264409]
iType = PeriodType.time();
int[] values = ISOChronology.getInstanceUTC().get(this, duration);
iType = PeriodType.standard();
iValues = new int[8];
System.arraycopy(values, 0, iValues, 4, 4);
}

/**
Expand Down

0 comments on commit a1707ea

Please sign in to comment.