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 <[email protected]>
  • Loading branch information
litvinovg and chenejac committed Apr 5, 2024
1 parent d27f3b2 commit 0b71c25
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.after(endCal)) {
if( startPrecision == VitroVocabulary.Precision.YEAR
&& endPrecision == VitroVocabulary.Precision.YEAR ){
errors.putAll( checkYears(startCal,endCal));
Expand Down

0 comments on commit 0b71c25

Please sign in to comment.