Skip to content

Commit

Permalink
[DOCS] Fix plainess-datetime example script error (#62811)
Browse files Browse the repository at this point in the history
  • Loading branch information
mushao999 authored Sep 29, 2020
1 parent ff59d88 commit 08dc3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/painless/painless-guide/painless-datetime.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ long elapsedTime = now - millisDateTime;
[source,Painless]
----
String nowString = params['now'];
ZonedDateTime nowZdt = ZonedDateTime.parse(datetime); <1>
ZonedDateTime nowZdt = ZonedDateTime.parse(nowString); <1>
long now = ZonedDateTime.toInstant().toEpochMilli();
ZonedDateTime inputDateTime = doc['input_datetime'];
long millisDateTime = zdt.toInstant().toEpochMilli();
Expand Down

0 comments on commit 08dc3d9

Please sign in to comment.