Running date library on SLES 11.4 I've encountered a following issue. Call to current_zone() returns "TIMErica/Chicago". I've debugged why and it turns out that zone extraction falls back to the code parsing /etc/sysconfig/clock file. But instead of ZONE="America/Chicago" there is TIMEZONE="America/Chicago". I'm attaching patch that should fix the issue and /etc/sysconfig/clock file for reproduction.
Running date library on SLES 11.4 I've encountered a following issue. Call to current_zone() returns "TIMErica/Chicago". I've debugged why and it turns out that zone extraction falls back to the code parsing /etc/sysconfig/clock file. But instead of ZONE="America/Chicago" there is TIMEZONE="America/Chicago". I'm attaching patch that should fix the issue and /etc/sysconfig/clock file for reproduction.
clock.txt sysconfig.clock.diff.txt