Migrate to kotlin.time.Instant and use kotlin.time.Instant.parse() for strings with a UTC offset, or kotlinx.datetime for date-only and offset-less strings.
Parses an Instant from its ISO-8601 representation.
Returns null if it can't be parsed.