Skip to content Skip to sidebar Skip to footer

Timezone.getavailableids In Android And Java

I am TimeZone.getAvailableIDs for List of TimeZone in android.It is behaving differently in android as compared to Java. String[] tzone = TimeZone.getAvailableIDs(-3 * 3600 * 1

Solution 1:

That's expected according to Android Documentation:

Android does not support the deprecated three-letter time zone IDs used in Java 1.1.

Solution 2:

While it is probably unexpected, I think it is doing the right thing. Those 3/4 letter timezones are so often ambiguous (no, I don't have an example at hand), while the long form with the / is unique.

Post a Comment for "Timezone.getavailableids In Android And Java"