Skip to content

Commit

Permalink
Added relaxed date-time format to support relaxed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed May 29, 2021
1 parent b463a3a commit f7e7ff8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -217,6 +217,9 @@ public boolean equals(Object obj) {
public static final CalendarDateFormat UTC_DATE_TIME_FORMAT = new CalendarDateFormat(
"yyyyMMdd'T'HHmmss'Z'", new InstantTemporalQuery());

public static final CalendarDateFormat RELAXED_DATE_TIME_FORMAT = new CalendarDateFormat(
"yyyyMMdd'T'HHmmss[X]", new InstantTemporalQuery(), new LocalDateTimeTemporalQuery());

/**
* A formatter capable of parsing to multiple temporal types based on the input string.
*/
Expand Down

0 comments on commit f7e7ff8

Please sign in to comment.