Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4028006

API: Cannot create Atlantic Standard Time zone

    XMLWordPrintable

Details

    • 1.2beta4
    • generic, other, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6, windows_95, windows_nt
    • Verified

    Description

      Cannot create Atlantic Standard Time Zone, instead the timezone ID of AST creates Alaska Time Zone.

      Steps to reproduce:
      Compile and run the attached java code

      import java.util.TimeZone;

      public class tz {
          static final int millisInHour = 3600000;
          public static void main( String argv[] ) {

              TimeZone tz1 = TimeZone.getTimeZone( "AST" );
              if( tz1 == null ) {
                  System.out.println( "Time zone is null" );
              }
              else{
                  System.out.println( "Offset: " +
                                      tz1.getRawOffset()/ (double)millisInHour );
                  System.out.println( "Should be -4" );
              }
              
          }
      }

      Attachments

        Issue Links

          Activity

            People

              aliusunw Alan Liu (Inactive)
              kasmithsunw Kevin Smith (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: