Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345213 JVM Prefers /etc/timezone Over /etc/localtime on Debian 12
  3. JDK-8350686

Release Note: Changes to the Default Time Zone Detection on Debian-based Linux

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 25
    • 25
    • core-libs

      On Debian-based Linux distributions such as Ubuntu, the `/etc/timezone` file was previously used to determine the JDK's default time zone (`TimeZone.getDefault()`). According to [Debian's Wiki](https://wiki.debian.org/TimeZoneChanges#Check_Configured_Timezone), `/etc/localtime` is now the primary source for the system's default time zone, making `/etc/timezone` redundant. As a result, the JDK's default time zone detection logic has been updated to use `/etc/localtime` instead of `/etc/timezone`. If `/etc/localtime` and `/etc/timezone` are inconsistent for any reason, the JDK's default time zone is now determined solely based on `/etc/localtime` file.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: