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

Wrong daylight saving time setting for EET

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.7
    • core-libs



      Name: dm26566 Date: 09/30/98


      [this is a bug in 1.1.6 as well]

      Here in Finland (Timezone EET) the DST
      used to be changed end of September and now
      it is changed end of October. 1.1 JDKs are giving
      incorrect time right now.

      Code:
      ----
      import java.util.Calendar;

      public class DST {

          DST() {
              Calendar p = Calendar.getInstance();
              System.out.println(p.getTime());
              System.out.println(p);
          }

          public static void main(String args[]) {
              new DST();
          }
      }
      ----
      And running:
      stars:/wrk/Java/testi>date ; ../jdk/jdk1.1.7/bin/javac DST.java && ../jdk/jdk1.1.7/bin/java DST
      Tue Sep 29 12:38:16 EET DST 1998
      Tue Sep 29 11:38:18 GMT+02:00 1998
      java.util.GregorianCalendar[time=907061898570,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=java.util.SimpleTimeZone[id=ART,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=3,startDay=-1,startDayOfWeek=6,startTime=0,endMode=2,endMonth=8,endDay=-1,endDayOfWeek=6,endTime=0],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=1998,MONTH=8,WEEK_OF_YEAR=40,WEEK_OF_MONTH=5,DAY_OF_MONTH=29,DAY_OF_YEAR=272,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=5,AM_PM=0,HOUR=11,HOUR_OF_DAY=11,MINUTE=38,SECOND=18,MILLISECOND=570,ZONE_OFFSET=7200000,DST_OFFSET=0]
      stars:/wrk/Java/testi>date ; ../jdk/jdk1.2beta4/bin/javac DST.java && ../jdk/jdk1.2beta4/bin/java DST
      Tue Sep 29 12:38:55 EET DST 1998
      Tue Sep 29 12:38:59 GMT+03:00 1998
      java.util.GregorianCalendar[time=907061939172,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=java.util.SimpleTimeZone[id=Europe/Istanbul,offset=7200000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=2,startMonth=2,startDay=-1,startDayOfWeek=1,startTime=10800000,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=10800000],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=1998,MONTH=8,WEEK_OF_YEAR=40,WEEK_OF_MONTH=5,DAY_OF_MONTH=29,DAY_OF_YEAR=272,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=5,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=38,SECOND=59,MILLISECOND=172,ZONE_OFFSET=7200000,DST_OFFSET=3600000]
      (Review ID: 39609)
      ======================================================================

            okutsu Masayoshi Okutsu
            dmcduffisunw Dale Mcduffie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: