File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
server/src/main/java/org/elasticsearch/common/time Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -389,8 +389,9 @@ public static ZonedDateTime nowWithMillisResolution(Clock clock) {
389
389
}
390
390
391
391
// check for all textual fields, and localized zone offset
392
+ // the weird thing with Z is to ONLY match 4 in a row, with no Z before or after (but those groups can also be empty)
392
393
private static final Predicate <String > CONTAINS_CHANGING_TEXT_SPECIFIERS = System .getProperty ("java.locale.providers" , "" )
393
- .contains ("COMPAT" ) ? Pattern .compile ("[EcGaO]|MMM| LLL|eee| ccc|QQQ|ZZZZ " ).asPredicate () : Predicates .never ();
394
+ .contains ("COMPAT" ) ? Pattern .compile ("[BEGOavz]| LLL|MMM|QQQ| ccc|eee|(?<!Z)Z{4}(?!Z) " ).asPredicate () : Predicates .never ();
394
395
395
396
@ UpdateForV9 // this can be removed, we will only use CLDR on v9
396
397
static void checkTextualDateFormats (String format ) {
You can’t perform that action at this time.
0 commit comments