Skip to content

Commit f3a0fde

Browse files
jakelandisLeaf-Lin
andauthored
Update hh to HH in date processor example (#58089) (#58143)
Co-authored-by: Leaf-Lin <[email protected]>
1 parent fb37c69 commit f3a0fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/ingest/processors/date.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ in the same order they were defined as part of the processor definition.
1414
| Name | Required | Default | Description
1515
| `field` | yes | - | The field to get the date from.
1616
| `target_field` | no | @timestamp | The field that will hold the parsed date.
17-
| `formats` | yes | - | An array of the expected date formats. Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.
17+
| `formats` | yes | - | An array of the expected date formats. Can be a <<mapping-date-format,java time pattern>> or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N.
1818
| `timezone` | no | UTC | The timezone to use when parsing the date. Supports <<accessing-template-fields,template snippets>>.
1919
| `locale` | no | ENGLISH | The locale to use when parsing the date, relevant when parsing month names or week days. Supports <<accessing-template-fields,template snippets>>.
2020
include::common-options.asciidoc[]
@@ -31,7 +31,7 @@ Here is an example that adds the parsed date to the `timestamp` field based on t
3131
"date" : {
3232
"field" : "initial_date",
3333
"target_field" : "timestamp",
34-
"formats" : ["dd/MM/yyyy hh:mm:ss"],
34+
"formats" : ["dd/MM/yyyy HH:mm:ss"],
3535
"timezone" : "Europe/Amsterdam"
3636
}
3737
}

0 commit comments

Comments
 (0)