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

Turkey Time Zone returns incorrect time zone name

XMLWordPrintable

    • b27
    • generic
    • generic

        Unit Test for Turkey TimeZone shows that Europe/Istanbul maps to “Eastern European Time” and it should be "Further-Eastern European Time" or "Turkey Time"

        test program:

        import java.util.TimeZone;

        public class TurkeyTime {
            public static void main(String[] args) {
                TimeZone tz = TimeZone.getTimeZone("Europe/Istanbul");
                System.out.println(tz.getDisplayName());

                TimeZone tz2 = TimeZone.getTimeZone("Asia/Istanbul");
                System.out.println(tz2.getDisplayName());
            }
        }

        output:
        java -showversion TurkeyTime
        openjdk version "14-internal" 2020-03-17
        OpenJDK Runtime Environment (build 14-internal+0-adhoc.xxinliu.jdk)
        OpenJDK 64-Bit Server VM (build 14-internal+0-adhoc.xxinliu.jdk, mixed mode)
        Eastern European Time
        Eastern European Time

              phh Paul Hohensee
              xliu Xin Liu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: