Is there a way to set the local timezone offset with the Linux DigiConnect ME device? I plan on reading log files from a CLI program that have UTC timestamps and display them using the current local time.
I noticed that there is no zoneinfo database on the device. Perhaps this is because of the total size involved.
The CLI will be a C application and would be use the standard library functions to convert to local time (e.g., localtime()).
I've tried building the zoneinfo data and copied that to /usr/share and created a symbolic link to /etc/localtime -> /usr/share/zoneinfo/America/Chicago, but that had no affect. Also setting TZ variable to '/usr/share/zoneinfo/America/Chicago' or 'America/Chicago' had not effect.
Perhaps the c-runtime needs to be built having knowledge of the zoneinfo data??
If I set the TZ variable to a value that has the timezone offset in it, only then will it adjust the local time. e.g., TZ='CST6CDT5,M4.1.0/02:00:00,M10.5.0/02:00:00' will affect the value returned from localtime() and adjust for DST. Is this the only option I have?