How to change time zone?

Software Version
DRIVE OS Linux 5.2.0
Target Operating System
Linux
Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
SDK Manager Version
1.4.0.7363
Host Machine Version
native Ubuntu 18.04

Hello,
I have been having problems setting the correct time on my Drive AGX. The time zone is set to UTC but I am in EDT. I tried changing the time zone with timedatectl but the only time zone available is UTC. Maybe there is some way to add my own time zone? I’ve also used sudo bash /usr/local/sbin/canrtc.sh set but I’m not really sure how that helps. If someone could explain to me how the RTC is supposed to be utilized as well, that would be very much appreciate.

Here are my timedatectl settings:

Local time: Fri 2021-02-05 11:52:24 UTC
Universal time: Fri 2021-02-05 11:52:24 UTC
RTC time: n/a
Time zone: n/a (UTC, +0000)
System clock synchronized: no
systemd-timesyncd.service active: yes
RTC in local TZ: no 

Thank you,
Zeus

Dear @pola5392 ,
We are checking internally and get back to you.

1 Like

I think I found the problem. I tried to use tzselect to set my timezone and I got the following error message:

/usr/bin/tzselect: line 180: /usr/share/zoneinfo/iso3166.tab: No such file or directory
/usr/bin/tzselect: time zone files are not set up correctly

I found out that this is a reported bug in ubuntu systems.
https://lists.ubuntu.com/archives/foundations-bugs/2014-March/185734.html
Before I attempted to do the “work around”, I tried to search for the /usr/share/zoneinfo/ directory and it was missing. I find this odd, I wonder if I reflash the AGX and the directory will be there. I checked on other Ubuntu systems for this directory and they all have it (not AGX computers). I will try to copy this directory into a flash drive and place it in the AGX and hope that this will fix this issue.

Zeus

Dear @pola5392 ,
By default we support only UTC timezone. hence you see only UTC in the available list.