@@ -3144,12 +3144,13 @@ private void handleEras(XPathParts parts, String value, List<String> examples) {
3144
3144
if (startCal == null && prevEra != null && prevEra .getEnd () != null ) {
3145
3145
startCal = prevEra .getEndCalendar ();
3146
3146
// shift forward so we are in the next era
3147
- startCal .setTimeInMillis (startCal .getTimeInMillis () + (DateConstants .MILLIS_PER_DAY ));
3147
+ startCal .setTimeInMillis (
3148
+ startCal .getTimeInMillis () + DateConstants .MILLIS_PER_TWO_DAYS );
3148
3149
}
3149
3150
if (endCal == null && nextEra != null && nextEra .getStart () != null ) {
3150
3151
endCal = nextEra .getStartCalendar ();
3151
3152
// shift backward so we are in the prev era
3152
- endCal .setTimeInMillis (endCal .getTimeInMillis () - ( DateConstants .MILLIS_PER_DAY ) );
3153
+ endCal .setTimeInMillis (endCal .getTimeInMillis () - DateConstants .MILLIS_PER_TWO_DAYS );
3153
3154
}
3154
3155
3155
3156
GregorianCalendar sampleDate = null ;
@@ -3158,18 +3159,18 @@ private void handleEras(XPathParts parts, String value, List<String> examples) {
3158
3159
// roll back a day to not hit the edge
3159
3160
sampleDate = endCal ;
3160
3161
sampleDate .setTimeInMillis (
3161
- sampleDate .getTimeInMillis () - ( DateConstants .MILLIS_PER_DAY ) );
3162
+ sampleDate .getTimeInMillis () - DateConstants .MILLIS_PER_TWO_DAYS );
3162
3163
} else if (startCal == null && endCal != null ) {
3163
3164
// roll back a day to not hit the edge
3164
3165
sampleDate = endCal ;
3165
3166
sampleDate .setTimeInMillis (
3166
- sampleDate .getTimeInMillis () - ( DateConstants .MILLIS_PER_DAY ) );
3167
+ sampleDate .getTimeInMillis () - DateConstants .MILLIS_PER_TWO_DAYS );
3167
3168
} else if (startCal != null && endCal == null ) {
3168
3169
sampleDate = new GregorianCalendar (2002 , 6 , 15 ); // CLDR repo root commit
3169
3170
if (sampleDate .before (startCal )) {
3170
3171
sampleDate = startCal ;
3171
3172
sampleDate .setTimeInMillis (
3172
- sampleDate .getTimeInMillis () + ( DateConstants .MILLIS_PER_DAY ) );
3173
+ sampleDate .getTimeInMillis () + DateConstants .MILLIS_PER_TWO_DAYS );
3173
3174
}
3174
3175
} else {
3175
3176
// System.err.println("No good date for " + eraData);
0 commit comments