to Ical4j Date Time
fun ZonedDateTime.toIcal4jDateTime(tzRegistry: TimeZoneRegistry = TimeZoneRegistryFactory.getInstance().createRegistry()): DateTime
Converts this zoned date-time (date/time with specific time zone) to an ical4j DateTime object.
Sets UTC flag (DateTime.isUtc, means ...ThhmmddZ
format) when this zone-date time object has a time zone of ZoneOffset.UTC.
Return
ical4j DateTime of the given zoned date-time
Parameters
tz Registry
time zone registry to get the net.fortuna.ical4j.model.TimeZone from (if needed)