Skip to content

Commit

Permalink
Fix joda migration for week based methods in Painless (#83232) (#83233)
Browse files Browse the repository at this point in the history
This change updates the docs to correct suggestions for migrating from 
JodaCompatibleZonedDateTime to ZonedDateTime in Painless for week based year and week of 
week based year.
  • Loading branch information
jdconrad authored Jan 27, 2022
1 parent 3985697 commit d70692f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ The following `JodaCompatibleZonedDateTime` methods must be replaced using
* `getMonthOfYear()` -> `getMonthValue()`
* `getSecondOfDay()` -> `get(ChronoField.SECOND_OF_DAY)`
* `getSecondOfMinute()` -> `getSecond()`
* `getWeekOfWeekyear()` -> `get(DateFormatters.WEEK_FIELDS_ROOT.weekBasedYear())`
* `getWeekOfWeekyear()` -> `get(IsoFields.WEEK_OF_WEEK_BASED_YEAR)`
* `getWeekyear()` -> `get(IsoFields.WEEK_BASED_YEAR)`
* `getYearOfCentury()` -> `get(ChronoField.YEAR_OF_ERA) % 100`
* `getYearOfEra()` -> `get(ChronoField.YEAR_OF_ERA)`
* `toString(String)` -> a DateTimeFormatter
Expand Down

0 comments on commit d70692f

Please sign in to comment.