@ SuppressWarnings ( "deprecation" ) protected Date getEndDate ( Query query ) { Instant instant = query . getInstantFilter ( "Ending" ) ; if ( instant == null ) return null ; else { Date end = new Date ( Date . from ( instant ) . getTime ( ) + DatabaseAccess . getDbTimeDiff ( ) ) ; if ( end . getHours ( ) == 0 ) { end = new Date ( end . getTime ( ) + DAY_MS ) ; // end of day } return end ; } }
This is not completion date . It s ending start date .