androidifyTimeZone

fun androidifyTimeZone(date: DateProperty?, tzRegistry: TimeZoneRegistry)

Ensures that a given net.fortuna.ical4j.model.property.DateProperty either

  1. has a time zone with an ID that is available in Android, or

  2. is an UTC property (net.fortuna.ical4j.model.property.DateProperty.isUtc = true).

To get the time zone ID which shall be given to the Calendar provider, use storageTzId.

Parameters

date

net.fortuna.ical4j.model.property.DateProperty to validate. Values which are not DATE-TIME will be ignored.

tzRegistry

time zone registry to get time zones from


fun androidifyTimeZone(dateList: DateListProperty)

Ensures that a given net.fortuna.ical4j.model.property.DateListProperty either

  1. has a time zone with an ID that is available in Android, or

  2. is an UTC property (DateProperty.isUtc = true).

Parameters

dateList

net.fortuna.ical4j.model.property.DateListProperty to validate. Values which are not DATE-TIME will be ignored.