File tree 1 file changed +2
-2
lines changed
test/jdk/java/time/test/java/time/format
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,15 +262,15 @@ Object[][] data_roundTripAtOverlap() {
262
262
263
263
@ Test (dataProvider ="roundTripAtOverlap" )
264
264
public void test_roundTripAtOverlap (String pattern , String input ) {
265
- var dtf = DateTimeFormatter .ofPattern (pattern );
265
+ var dtf = DateTimeFormatter .ofPattern (pattern , Locale . US );
266
266
assertEquals (dtf .format (ZonedDateTime .parse (input , dtf )), input );
267
267
var lc = input .toLowerCase (Locale .ROOT );
268
268
try {
269
269
ZonedDateTime .parse (lc , dtf );
270
270
fail ("Should throw DateTimeParseException" );
271
271
} catch (DateTimeParseException ignore ) {}
272
272
273
- dtf = new DateTimeFormatterBuilder ().parseCaseInsensitive ().appendPattern (pattern ).toFormatter ();
273
+ dtf = new DateTimeFormatterBuilder ().parseCaseInsensitive ().appendPattern (pattern ).toFormatter (Locale . US );
274
274
assertEquals (dtf .format (ZonedDateTime .parse (input , dtf )), input );
275
275
assertEquals (dtf .format (ZonedDateTime .parse (lc , dtf )), input );
276
276
}
You can’t perform that action at this time.
0 commit comments