Skip to content

Commit 2fecc52

Browse files
committed
Simplify the list of supported formats
The list of formats is exactly those supported by the spec, no more no less (modulo that there's a typo in the spec that I've corrected here).
1 parent 6a5ff53 commit 2fecc52

File tree

1 file changed

+4
-20
lines changed
  • modules/ingest-common/src/main/java/org/elasticsearch/ingest/common

1 file changed

+4
-20
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CefParser.java

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -281,29 +281,13 @@ enum DataType {
281281
* <a href="https://www.microfocus.com/documentation/arcsight/arcsight-smartconnectors-24.2/pdfdoc/cef-implementation-standard/cef-implementation-standard.pdf">documentation</a>
282282
*/
283283
private static final List<String> TIME_LAYOUTS = List.of(
284-
// MMM dd HH:mm:ss.SSS zzz
285-
"MMM dd HH:mm:ss.SSS z",
286-
"MMM dd HH:mm:ss.SSS Z",
287-
"MMM dd HH:mm:ss.SSS 'GMT'XX:XX",
288-
// MMM dd HH:mm:sss.SSS
284+
"MMM dd HH:mm:ss.SSS zzz",
289285
"MMM dd HH:mm:ss.SSS",
290-
// MMM dd HH:mm:ss zzz
291-
"MMM dd HH:mm:ss z",
292-
"MMM dd HH:mm:ss Z",
293-
"MMM dd HH:mm:ss 'GMT'XX:XX",
294-
// MMM dd HH:mm:ss
286+
"MMM dd HH:mm:ss zzz",
295287
"MMM dd HH:mm:ss",
296-
// MMM dd yyyy HH:mm:ss.SSS zzz
297-
"MMM dd yyyy HH:mm:ss.SSS z",
298-
"MMM dd yyyy HH:mm:ss.SSS Z",
299-
"MMM dd yyyy HH:mm:ss.SSS 'GMT'XX:XX",
300-
// MMM dd yyyy HH:mm:ss.SSS
288+
"MMM dd yyyy HH:mm:ss.SSS zzz",
301289
"MMM dd yyyy HH:mm:ss.SSS",
302-
// MMM dd yyyy HH:mm:ss zzz
303-
"MMM dd yyyy HH:mm:ss z",
304-
"MMM dd yyyy HH:mm:ss Z",
305-
"MMM dd yyyy HH:mm:ss 'GMT'XX:XX",
306-
// MMM dd yyyy HH:mm:ss
290+
"MMM dd yyyy HH:mm:ss zzz",
307291
"MMM dd yyyy HH:mm:ss"
308292
);
309293

0 commit comments

Comments
 (0)