[uClibc]Can not get localtime for BRECIS MIPS board

Manuel Novoa III mjn3 at codepoet.org
Thu Aug 1 16:17:06 UTC 2002


On Thu, Aug 01, 2002 at 08:52:19AM -0700, VAN DUC UY wrote:
> Hello all,
> I can not get the localtime for my system (kernel
> 2.4.14, uClibc-0.9.12,
> mips-gcc 3.1, BRECIS MPS3000). the localtime()
> function on uClibc-0.9.12
> always return me a GMT time.
> 
> Can anybody show me the way to get localtime for my
> application ?

You need to set the TZ envirnment variable, as described in

http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html

Manuel



More information about the uClibc mailing list