I'm looking into how to add the ability to change Timezone in
sipXconfig.

I've been researching this and I see the required steps are as follows:

1. The TimeZone setting is going to be a drop down list of all TimeZones
under Andrei's System->Time Settings.
2. I'm going to build the drop-down list be inspecting the
/usr/share/zoneinfo directory and building the string (based on file or
subdir/file)
   i.e. Iceland, GB, Israel, Europe/Prague, America/Kentucky/Louisville,
America/Los_Angeles etc.
3. Read /etc/sysconfig/clock ZONE field to initialise the drop-down
list.
4. When the user changes the setting, do the following (using a script
with setuid bit set):
   i. ln -sf /usr/share/zoneinfo/Europe/Prague /etc/localtime
  ii. Set the ZONE field to Europe/Prague in /etc/sysconfig/clock

Andrei told me that Scott had said that we do not need to set the
hardware clock, only the system clock.
First, Are the above steps correct?
Secondly, when /etc/sysconfig/clock file is changed, is the something I
have to call to set this time? I've been looking at sipx_reset_cd, but
it doesn't help as the system is rebooted after this runs.

Thanks all,
Paul.
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to