code: public static ZonedDateTime zonedDateTimeOf(final Calendar time) {
          return ZonedDateTime.ofInstant(time.toInstant(), time.getTimeZone().toZoneId());
      }
docs: Gets ZonedDateTime for Calendar.
  
  @param time Time object to be converted.
  @return ZonedDateTime representing time