PDA

View Full Version : Fun with V3.6 - Part Deux - timezones



el_supremo
08-29-2004, 08:33 PM
The problem with setting the timezone that I noted in an earlier message about V3.4 is still in V3.6. The /etc/init.d/knoppix-autoconfig script doesn't use the tz= cheatcode until after it has already set the hardware clock and written TZ out to /etc/sysconfig/knoppix.

The fix is that this block of code:

KTZ="$(getbootparam tz 2>/dev/null)"
[ -f "/usr/share/zoneinfo/$KTZ" ] && TZ="$KTZ"
rm -f /etc/localtime
cp "/usr/share/zoneinfo/$TZ" /etc/localtime
should be moved before this block of code:

# hwclock uses the TZ variable
export TZ
hwclock $UTC -s

Best Wishes
Pete