Skip to content

Commit d70692f

Browse files
authored
Fix joda migration for week based methods in Painless (#83232) (#83233)
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.
1 parent 3985697 commit d70692f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/reference/migration/migrate_8_0/painless-changes.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ The following `JodaCompatibleZonedDateTime` methods must be replaced using
3737
* `getMonthOfYear()` -> `getMonthValue()`
3838
* `getSecondOfDay()` -> `get(ChronoField.SECOND_OF_DAY)`
3939
* `getSecondOfMinute()` -> `getSecond()`
40-
* `getWeekOfWeekyear()` -> `get(DateFormatters.WEEK_FIELDS_ROOT.weekBasedYear())`
40+
* `getWeekOfWeekyear()` -> `get(IsoFields.WEEK_OF_WEEK_BASED_YEAR)`
41+
* `getWeekyear()` -> `get(IsoFields.WEEK_BASED_YEAR)`
4142
* `getYearOfCentury()` -> `get(ChronoField.YEAR_OF_ERA) % 100`
4243
* `getYearOfEra()` -> `get(ChronoField.YEAR_OF_ERA)`
4344
* `toString(String)` -> a DateTimeFormatter

0 commit comments

Comments
 (0)