Uploaded image for project: 'Red Hat Directory Server'
  1. Red Hat Directory Server
  2. DIRSRV-61

Timezone America/St_Johns is not properly represented in log timestamps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • dirsrv-12.5
    • dirsrv-11.0
    • 389-ds-base
    • None
    • None
    • rhel-sst-idm-ds
    • 0
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Bug Fix
    • Hide
      .Log file timestamps now have the correct time zone

      Previously, the log file timestamps had the wrong timezone offset if the timezone offset was not a multiple of an hour, like America/St_johns timezone which is UTC-3:30. With this update, the timezone offset is calculated correctly.
      Show
      .Log file timestamps now have the correct time zone Previously, the log file timestamps had the wrong timezone offset if the timezone offset was not a multiple of an hour, like America/St_johns timezone which is UTC-3:30. With this update, the timezone offset is calculated correctly.

      Description of problem:
      America/St_Johns has a UTC offset of -03:30.

      1. timedatectl
        Local time: Thu 2023-12-21 20:33:31 NST
        Universal time: Fri 2023-12-22 00:03:31 UTC
        RTC time: Fri 2023-12-22 00:03:32
        Time zone: America/St_Johns (NST, -0330)
        System clock synchronized: yes
        NTP service: active
        RTC in local TZ: no

      RHDS shows a timezone offset in the logs of -031800 instead:

      ns-slapd[67963]: [21/Dec/2023:20:29:56.032925110 -031800] - INFO - slapd_daemon - slapd started. Listening on All Interfaces port 389 for LDAP requests

      Version-Release number of selected component (if applicable):

      • 389-ds-base-1.4.3.31-11.module+el8dsrv+17815+4f95348d.x86_64

      How reproducible:
      Confirmed by Red Hat Support.

      Steps to Reproduce:
      1. Install RHEL and set timezone to America/St_Johns
      2. Setup a default instance of RHDS and start it.
      3. Run timedatectl and compare the UTC offset to the one in the RHDS logs (systemctl status dirsrv@example).

      Actual results:
      RHDS shows a UTC offset of -03:18.

      Expected results:
      RHDS shows a UTC offset of -03:30.

      Additional info:
      N/A

              idm-ds-dev-bugs IdM DS Dev
              rhn-support-ccallaha Chance Callahan
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: