On Mon, 1 Oct 2007 10:06:26 +0200 Tzafrir Cohen <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 01, 2007 at 09:26:25AM +0200, Henning Holtschneider wrote: > > Hi, > > > > I've got a system which only provides POSIX-style timezone > > information through /etc/TZ and the TZ environment variable. > > Unfortunately, Asterisk doesn't seem to care about the timezone and > > defaults to GMT. > > What system is it? It's an embedded system running uClibc. > Isn't it a matter for libc to do this dirty work? I thought so, but if I look at the code in main/stdtime/localtime.c, it seems as if Asterisk parses the zoninfo files itself. The sparse comments indicate that there is support for POSIX timezones, too. But I don't understand how the code is supposed to distinguish between zoneinfo files and a POSIX-style timezone definition (see <http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html> for the definition of the POSIX TZ format). I can copy a valid zoneinfo file onto the device and symlink it to /etc/localtime, but the zoneinfo files are way too big to be used on my device. Best regards, Henning Holtschneider -- LocaNet oHG - http://www.loca.net Lindemannstrasse 81, D-44137 Dortmund tel +49 231 91596-25, fax +49 231 91596-55 sip [EMAIL PROTECTED] Registergericht Amtsgericht Dortmund HRA 14208 Geschäftsführer Sven Haufe, Henning Holtschneider
signature.asc
Description: PGP signature
_______________________________________________ Sign up now for AstriCon 2007! September 25-28th. http://www.astricon.net/ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
