From 7f4131f923cfdafa55e74e2164678934a076165d Mon Sep 17 00:00:00 2001 From: Aaron Mildenstein Date: Tue, 6 Mar 2018 06:45:43 -0800 Subject: [PATCH] Fix incorrect datemath example (#28904) The original example resulted in a 400 error due to the example being `-` separated instead of the default `.` separation. ``` failed to parse date field [2001-01-01] with format [YYYY.MM.dd] ``` --- docs/reference/api-conventions.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/api-conventions.asciidoc b/docs/reference/api-conventions.asciidoc index 7cd608d0bb533..e2824bb528584 100644 --- a/docs/reference/api-conventions.asciidoc +++ b/docs/reference/api-conventions.asciidoc @@ -220,7 +220,7 @@ Assuming `now` is `2001-01-01 12:00:00`, some examples are: `now+1h`:: `now` in milliseconds plus one hour. Resolves to: `2001-01-01 13:00:00` `now-1h`:: `now` in milliseconds minus one hour. Resolves to: `2001-01-01 11:00:00` `now-1h/d`:: `now` in milliseconds minus one hour, rounded down to UTC 00:00. Resolves to: `2001-01-01 00:00:00`` - `2001-01-01\|\|+1M/d`:: `now` in milliseconds plus one month. Resolves to: `2001-02-01 00:00:00` + `2001.02.01\|\|+1M/d`:: `2001-02-01` in milliseconds plus one month. Resolves to: `2001-03-01 00:00:00` [float] [[common-options-response-filtering]]