As a workaround, the time zone can be set via a Linux command line
The package "systemd" must be installed on the system, for timedatectl to be used.
== >> on PFC100/PFC200 runtimes, systemd is not used, but the following commands can be used instead
Use the "/etc/config-tools/config_timezone"-command in place of the "timedatectl set-timezone"-command:
TZ="CET-1CEST,M3.5.0/2,M10.5.0/3" or /etc/config-tools/config_timezone tz-string="CET-1CEST,M3.5.0/2,M10.5.0/3"
The timezone abbreviation list for PFC100/PFC200 can be found here:
cat /usr/share/zoneinfo/allzones
Allow the command first, as described here: SysProcess
The list of available time zones can be read out via the command line
timedatectl list-timezones
Declaration
VAR sCmdCet : STRING := 'timedatectl set-timezone Europe/Berlin'; sCmdGmt : STRING := 'timedatectl set-timezone Etc/GMT'; xSetGmt : BOOL; xSetCet : BOOL; rtsResult : SysTypes.RTS_IEC_RESULT; diReturn : DINT; END_VAR
Implementation
IF xSetGmt THEN xSetGmt := FALSE; diReturn := Sysprocess.SysProcessExecuteCommand(pszComand := sCmdGmt, ADR(rtsResult)); END_IF IF xSetCet THEN xSetCet := FALSE; diReturn := Sysprocess.SysProcessExecuteCommand(pszComand := sCmdCet, ADR(rtsResult)); END_IF