I am using Colibri-imx6 with Linux OS. I am trying to set timezone to Detroit using timedatectl.
The command I use
timedatectl set-timezone America/Detroit . I am not able to set the timezone. I get the following error
Failed to set time zone: Invalid time zone ‘America/Detroit’
I am able to set the timezone by creating a symlink. However the zoneinfo has very limited timezones.
Is there any other way to set timezone through user program ? I tried setting the tz environment variable but it resets the time to system time once the program execution is over.