Allowing end user to change timezone


Forum: HD Install
Topic: Allowing end user to change timezone
started by: pjkerpan

Posted by pjkerpan on May 23 2006,13:33
I apologize for being thickheaded in advance - but I have read every forum post and wiki entry on timezones and i still cannot tell if:

a) the timezone can be switched on the fly without a reboot
b) the timezone can be switched while the OS is up and running (say via a friendly webpage for the end user) and then persisted via a reboot

I have a frugal hd install running with the "toram" option using LILO.  

The only options I have perceived are:
- tzconfig (apparently no longer in the distro)
- dsl tz=Foo/Bar by hand every boot (hard for endusers)
- put tz=Foo/Bar in lilo.conf (no joy)
- use date command, then hwclock (doesn't persist between boots)

The only success I have had is doing it by hand every boot - is there a config file somewhere where I can persist this setting between boots?

Thanks -

Posted by roberts on May 23 2006,15:47
The only thing that boot code is doing is:

1. setting the TZ environment variable to your selected timezone
2. cp /usr/share/zoneinfo/$TZ /etc/localtime

Try adding these commands to /opt/bootlocal.sh

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.