How Can I Change My NI Linux Real-Time Target Timezone?

Updated Apr 12, 2019

Reported In


  • CompactRIO Controller


  • LabVIEW Real-Time Module

Operating System

  • NI Linux Real-Time

Issue Details

I am trying to change my NI Linux Real-Time device timezone according to the steps found here.
However the timezone of the device that I see from MAX in the Time Settings tab is not aligned with the one I set in LabVIEW through the VI Set Time of the System Configuration Palette. The time I receive when I use the Get Date/Time in Seconds function is also off.
What are the steps to follow in order to change the timezone of my device?


In order to change a NI Linux Real-Time controller timezone you have to access to the device shell.
In order to do this, access the shell of your device following the steps given in the article "Accessing the Shell on NI Linux Real-Time Devices" and then follow these instructions afterwards:
  1. cd /etc/natinst/share to move to the "/etc/natinst/share" folder
  2. Optional: ls -l to display the link to the current timezone used.
  1. rm localtime to delete the current link to timezone information.
  2. ln -s /usr/share/zoneinfo/Europe/Berlin localtime to set the desired timezone (in this example Berlin/Europe timezone is used). The new setting is immediately active, no restart needed.
  3. Optional: ls -l to verify the new timezone link was successfully created.
  4. Optional: date to show the current system's time.

The list of the possible timezones is contained in the path /usr/share/zoneinfo/​
Use ls /usr/share/zoneinfo to explore the highest level, and e.g. ls /usr/share/zoneinfo/Europe to explore a subfolder, accordingly.

You may need to press the Refresh button on NI MAX to display the new timezone

You can verify that the timezone shown in NI MAX is aligned with that set on the device by using the date command in the shell.