Skip to content

Commit

Permalink
Merge pull request #449 from bci-oss/bugfix/418-date-examples
Browse files Browse the repository at this point in the history
Fixed generation example values for date properties
  • Loading branch information
atextor authored Oct 20, 2023
2 parents 8d39df9 + 0ede3c5 commit a3c61d9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ private Optional<DateFormat> getDateFormat( final String urn ) {
if ( XSD.duration.getURI().equals( urn ) ) {
return Optional.of( new SimpleDateFormat( "PddD" ) );
}
if ( XSD.date.getURI().equals( urn ) ) {
return Optional.of( new SimpleDateFormat( "yyyy-MM-dd" ) );
}
return Optional.empty();
}

Expand Down

0 comments on commit a3c61d9

Please sign in to comment.