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

Need solution for the special handing in sun.util.calendar.ZoneInfoFile for tz Amman, Gaza and Hebron

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 9
    • core-libs
    • 8

                      // Note: known mismatching -> Asia/Amman
                      // Asia/Gaza
                      // Asia/Hebron
                      // ZoneInfo : startDayOfWeek=5 <= Thursday
                      // startTime=86400000 <= 24 hours
                      // This: startDayOfWeek=6
                      // startTime=0
                      // Below is the workaround, it probably slows down everyone a little
                      if (params[2] == 6 && params[3] == 0 &&
                          (zoneId.equals("Asia/Amman") ||
                           zoneId.equals("Asia/Gaza") ||
                           zoneId.equals("Asia/Hebron"))) {
                          params[2] = 5;
                          params[3] = 86400000;
                      }

            sherman Xueming Shen
            sherman Xueming Shen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: