Skip to content

Commit

Permalink
Update api/src/main/java/edu/cornell/mannlib/vitro/webapp/edit/n3edit…
Browse files Browse the repository at this point in the history
…ing/VTwo/DateTimeIntervalValidationVTwo.java

Co-authored-by: Dragan Ivanovic <chenejac@uns.ac.rs>
  • Loading branch information
litvinovg and chenejac committed Apr 2, 2024
1 parent 4f6e435 commit 1ec8aa9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -195,7 +195,7 @@ private Map<String, String> checkDateLiterals(
Calendar endCal = endDate.asCalendar();

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

0 comments on commit 1ec8aa9

Please sign in to comment.