-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
Description
There is currently no warning for joda-java pattern incompatibilities.
We should warn users who migrate from 6.x to 7 that their pattern might no longer work in 7 unless they update their mappings.
Pattern can be used in:
- index mapping
- pipeline processors: date processor and date index name processor
Incompatible pattern specifiers:
Y year-of-erain joda should be updated toy year-of-erain java.time.Ymeans week-based-year in java.timey yearin joda, should be updated tou yearin java.time. The difference between year and year-of-era is that year can have values<0for years before the era.xweek-yearin joda should be updated toYin java.time.x` means zone-offset in java.time.C centuryis no longer supported in java.timeZ time zone offset/idhas the same meaning in java.time as it had previously in joda. However it will fail when parsingZin a date. For instance2019-05-09T14:24:00.000Z(in Zulu/UTC time) will fail parsing.Xcould be used instead and correctly parse this date.z time zone text- Will printZfor Zulu given UTC timezone. Previously joda was printing UTC for utc timezone.