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: Unresolved
    • Icon: Blocker Blocker
    • dirsrv-12.5
    • dirsrv-11.0
    • 389-ds-base
    • None
    • None
    • sst_idm_ds
    • 0
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Bug Fix
    • Hide
      log file timestamps had wrong timezone offset if the timezone offset is not aligned on plain hours (like America/St_johns timezone which is UTC-3:30)
      Timezone offset are now computed properly.
      Show
      log file timestamps had wrong timezone offset if the timezone offset is not aligned on plain hours (like America/St_johns timezone which is UTC-3:30) Timezone offset are now computed properly.

      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: