Here you can find the source of getZonedDateTime(LocalDateTime dateTime, TimeZone timeZone)
public static ZonedDateTime getZonedDateTime(LocalDateTime dateTime, TimeZone timeZone)
//package com.java2s; //License from project: Apache License import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.TimeZone; public class Main { public static ZonedDateTime getZonedDateTime(LocalDateTime dateTime, TimeZone timeZone) { ZoneId zoneId = timeZone.toZoneId(); return dateTime.atZone(zoneId); }//from w w w. j av a2s. c o m public static ZonedDateTime getZonedDateTime(LocalDate date, TimeZone timeZone) { ZoneId zoneId = timeZone.toZoneId(); return date.atStartOfDay(zoneId); } }