androidifyTimeZone

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

Ensures that a given DateProperty either

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

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

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

Parameters

date

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 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

DateListProperty to validate. Values which are not DATE-TIME will be ignored.