Search code examples
javatimezonelocale

Does timezone count differ by locale?


Will TimeZone.getAvailableIDs(); get the same number of timezones regardless of what locale I'm running in?


Solution

  • Yes.

    TimeZone.getAvailableIDs() returns all known time zones and has nothing to do with locale.

    I am interested in why you thought it was possible that it could be different based on locale.

    As Gunslinger47 points out, time zones do occasionally change and you need to either update to a new JDK/JRE or patch the old one, but again this is independent of locale.