Timezones and the Java Runtime Environment: Frequently Asked Questions

By the Java SE Platform Support Team, August 2016
 
   
Contents
  1. Why do I need to care about timezone data?
     
    Timezone data changes frequently. This is reflected in the rate of change to the Timezone Database and the numbering per year of multiple changes, for example 2007a, b, c, ..., g.
     
  2. Why does timezone data change?
     
    Timezone settings are adopted locally, and there is no world timezone authority. In North America, timezone adoption occurs at the city or county level. A wide variety of local concerns can drive a municipality to alter their timezone:
    • Large municipal events: For example, the 2006 Commonwealth Games in Sydney.
    • Voting: For example, Brazil altered their setting for national elections one year.
    • Religion: For example, the Egyptian time setting is changing for Ramadan in 2007.
     
  3. Where does one find information about timezones worldwide?
     
    There is no worldwide timezone data authority, however, the Olson Timezone Database seems to be a point of IT convention. Paul Eggert coordinates the collection of timezone change information and codifies it into the Olson Timezone Database. Paul maintains the Sources for Timezone and Daylight Saving Time Data web site to disperse this timezone information.
     
  4. What exactly is the Timezone Database?
     
    The Timezone Database is the nearest thing there is to an internationally agreed standard for timezones. For more information about the Timezone Database, see this Wikipedia entry.
     
  5. Which JRE version updates include which versions of the timezone data?
     
    The versions of the timezone data that are contained in the different JRE version updates are listed on the page Timezone Data Versions in the JRE Software.
     
  6. What are the differences between, for example, "tzdata2005n" and "tzdata2006p"?
     
    The different  timezone data releases reflect changes in timezone rules that have been applied in different places in the world. Major changes in timezone rules in a particular  timezone data release are described in the page Timezone Data Versions in the JRE Software.
     
  7. Can I still use the deprecated three-letter timezone IDs "EST", "HST", and "MST" for Eastern, Hawaii, and Mountain summer time?
     
    No, this can lead to incompatibilities. You should use the new format of timezone ID, for example, "America/New_York." See Background on Sun Alert 102836 for more details.
     
  8. What is the minimum version of the Java platform that I need for my country?
     
    If your international timestamp calculations are important for your applications, then you need to keep your JRE software updated with the most up-to-date timezone rules. To do this, you should upgrade to the latest update release of the JRE software.

  9.  
  10. Do my operating system's timezone patches fix the Java platform's timezone data?
     
    No. The Java SE platform's timezone data is not read from the local or host operating system. The Java SE platform maintains a private repository of timezone data in locally installed files ( .../jre/lib/zi) as part of the Java Runtime Environment (JRE) software. Applying whatever operating system timezone patches (for example Solaris OS, Linux, Windows) will have no effect on the accuracy of the Java SE platform's timezone data.
     
  11. What happens if I cannot upgrade to a current JRE or JDK version?
     
    If for any reason it is impossible for you to upgrade your JRE or JDK software to the latest update versions, Oracle provides a tool for updating timezone data in installed JRE or JDK software images. This is called the Timezone Updater tool, or TZUpdater, which is available in Java SE TZUpdater Downloads.
     
     
  12. What is the TZUpdater tool?
     
    TZUpdater is a standalone tool that updates older installed JRE implementations with the most recent timezone data. For more information see Timezone Data and the Java Runtime Environment and the TZUpdater README.
     
  13. Where can I get the TZUpdater tool?
     
    The TZUpdater tool is available in Oracle Technology Network - Java SE Download Page and through My Oracle Support. See Note 1412103.2.
     
  14. Do I need to restart instances of the JRE to pick up new timezone data?
     
    Yes. Before running the TZupdater tool to update timezone data, you should stop all the relevant instances of the JRE software. Cached instances of timezone data might exist in running JRE software processes if you do not shut down the JRE software before running the tool.
     
    Restart the JRE software after the TZupdater tool has completed its work.
     

  15.  
For More Information

Timezone information specific to the Java platform:

The following external links provide general information about timezones and DST:

Rate and Review
Tell us what you think of the content of this page.
Excellent   Good   Fair   Poor  
Comments:
Your email address (no reply is possible without an address):
Sun Privacy Policy

Note: We are not able to respond to all submitted comments.