storageTzId

fun storageTzId(date: DateProperty): String

Returns the time-zone ID for a given date or date-time that should be used to store it in the Android calendar provider.

Does not check whether Android actually knows the time zone ID – use androidifyTimeZone for that.

Return

  • UTC for dates and UTC date-times

    • the specified time zone ID for date-times with given time zone

    • the currently set default time zone ID for floating date-times

Parameters

date

DateProperty (DATE or DATE-TIME) whose time-zone information is used