Skip to content

Commit

Permalink
Use DateUtils when deserialising timezones
Browse files Browse the repository at this point in the history
DateUtils.of methods allows to emitt deprecation message when a
deprecated timezone was used

closes elastic#38449
  • Loading branch information
pgomulka committed Dec 30, 2020
1 parent 8f74f18 commit 6c235ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ public ZoneId readZoneId() throws IOException {
*/
public ZoneId readOptionalZoneId() throws IOException {
if (readBoolean()) {
return ZoneId.of(readString());
return DateUtils.of(readString());
}
return null;
}
Expand Down

0 comments on commit 6c235ed

Please sign in to comment.