On Aug 4, 2006, at 2:42 PM, Darrick Hartman wrote:

The latest svn that Kristian has committed (191 astlinux-trunk) will 
properly set /etc/TZ if the TIMEZONE variable is set in rc.conf.  What 
I'm unclear about is if /etc/localtime needs to be set at all or if the 
zoneinfo files are only used by asterisk's voicemail section and read 
directly from /usr/share/zoneinfo.  If /etc/localtime is not used, the 
symbolic link should be removed.  If it IS used by asterisk 
(/etc/localtime) then we would need the second variable.

Hopefully that is clearer than what I was in my past email.

Darrick
Darrick,

Well, I found at lest one case where asterisk reads /etc/localtime.

Following the logic, it may not be called if zoneinfo is matched, but it would be a good idea to set it, IMHO.

stdtime/localtime.c:
} else if (tzload(name, cur_state) != 0) {
if (name[0] == ':') {
(void) gmtload(cur_state);
} else if (tzparse(name, cur_state, FALSE) != 0) {
/* If not found, load localtime */
if (tzload("/etc/localtime", cur_state) != 0)
/* Last ditch, get GMT */
(void) gmtload(cur_state);
}
}


Lonnie
_______________________________________________
Astlinux-users mailing list
[email protected]
http://lists.kriscompanies.com/mailman/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to