Wind River Support Network

HomeDefectsLIN8-13229
Acknowledged

LIN8-13229 : tzdata package 2020c in RCPL 34 time zone functionality is broken.

Created: Feb 2, 2021    Updated: Feb 3, 2021
Found In Version: 8.0.0.34
Severity: Severe
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

The tzdata package version was upgraded from 2019c to 2020c in RCPL 34, because of which the time zone functionality is broken. Irrespective of what timezone is selected, the system displays time in UTC as shown below:

root@kk-cxii-47:~# timedatectl
Local time: Fri 2021-01-29 18:09:19
Universal time: Fri 2021-01-29 18:09:19 UTC
RTC time: Fri 2021-01-29 18:09:20
Time zone: Canada/Eastern (, +0000)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no

Workaround

Regression to 2020a seems to fix the issue.

I attached a patch file with the changes I used.

[^0001-downgrade-tzdata-package-2020c-to-2020a.patch]

Steps to Reproduce

# $ <wr_lx8>/wrlinux/configure --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc-small --enable-reconfig --enable-bootimage=cpio.gz.u-boot --enable-rm-oldimgs=yes --enable-internet-download=yes --with-package=tzdata --with-rcpl-version=0034
 # $ make
 # $ make start-target
 # In the qemu target
 ** # timedatectl
 ** Local time: Tue 2021-02-02 16:24:40 
 Universal time: Tue 2021-02-02 16:24:40 UTC
 RTC time: n/a
 Time zone: Universal (, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no
 ** #timedatectl set-timezone "America/Costa_Rica"
 ** # timedatectl
 ** Local time: Tue 2021-02-02 16:25:14 
 Universal time: Tue 2021-02-02 16:25:14 UTC
 RTC time: n/a
 Time zone: America/Costa_Rica (, +0000)
 Network time on: yes
NTP synchronized: no
 RTC in local TZ: no

The timezone is not applied.
Live chat
Online