Skip to content

Commit

Permalink
Merge pull request #2048 from bakdata/feature/support-single-date-for…
Browse files Browse the repository at this point in the history
…-daterange

support single dates for date set (input and output)
  • Loading branch information
thoniTUB authored Aug 26, 2021
2 parents 22eee00 + 1b90475 commit feb432a
Show file tree
Hide file tree
Showing 116 changed files with 624 additions and 599 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ protected CDateRangeDeserializer(DateReader dateReader) {
@SneakyThrows
@Override
public CDateRange deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
return DateRangeParser.parseISORange(p.getText(), dateReader);
return dateReader.parseToCDateRange(p.getText());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class LocaleConfig {
*/
@NotEmpty
private Map<Locale, String> localeRangeStartEndSeparators = Map.of(
Locale.GERMAN, "-",
Locale.GERMAN, " - ",
Locale.ROOT, "/"
);

Expand Down
Loading

0 comments on commit feb432a

Please sign in to comment.