Skip to content

Commit

Permalink
Allow end date be equal to start date in Date time interval validator
Browse files Browse the repository at this point in the history
  • Loading branch information
litvinovg authored and chenejac committed Apr 2, 2024
1 parent 2c8d034 commit 4f6e435
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private Map<String, String> checkDateLiterals(
Calendar endCal = endDate.asCalendar();

if( endCal != null ){
if( !startCal.before( endCal ) ){
if (!startCal.before(endCal) && !startCal.equals(endCal)) {
if( startPrecision == VitroVocabulary.Precision.YEAR
&& endPrecision == VitroVocabulary.Precision.YEAR ){
errors.putAll( checkYears(startCal,endCal));
Expand Down

0 comments on commit 4f6e435

Please sign in to comment.