How does nginx get the TimeZone of local system while compile & install?

Maxim Dounin mdounin at
Tue Aug 30 15:51:06 UTC 2011


On Tue, Aug 30, 2011 at 08:29:56PM +0800, Sharl.Jimh.Tsin wrote:


> and to define it in nginx.conf file via "env" probably not work at all,i
> tried it before.for example "env TZ=Asia/Shanghai".

Which OS do you use, Linux?  This works perfectly on FreeBSD, but 
it looks like not on Linux as it doesn't check updated TZ 
environment on localtime_r() calls and requires explicit tzset().  
I'll take a more closer look as time permits.

Maxim Dounin

More information about the nginx mailing list