Skip to content

Commit

Permalink
Fix incorrect datemath example (elastic#28904)
Browse files Browse the repository at this point in the history
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]
```
  • Loading branch information
untergeek authored and javanna committed Mar 6, 2018
1 parent ea268d7 commit cc8b936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/api-conventions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit cc8b936

Please sign in to comment.