*/
public static ZonedDateTime dateTime(OffsetDateTime dateTime, TimeZone zone) {
ISOChronology.checkNotNull(dateTime, "OffsetDateTime must not be null");
ISOChronology.checkNotNull(zone, "TimeZone must not be null");
ZoneOffset inputOffset = dateTime.getOffset();
ZoneRules rules = zone.getRules(); // latest rules version
OffsetInfo info = rules.getOffsetInfo(dateTime.toLocalDateTime());
if (info.isValidOffset(inputOffset) == false) {
if (info.isDiscontinuity() && info.getDiscontinuity().isGap()) {
throw new CalendarConversionException("The local time " + dateTime.toLocalDateTime() +
" does not exist in time zone " + zone + " due to a daylight savings gap");
}