docs: static public Date adjustDate(Date date)
    {
      long milliToAdjust = ResultUtil.msDiffJulianToGregorian(date);
  
      if (milliToAdjust != 0)
      {
        // add the difference to the new date
        return new Date(date.getTime() + milliToAdjust);
      }
      else
      {
        return date;
      }
    }