Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
August 30, 2011 08:16AM
Hello!

On Tue, Aug 30, 2011 at 07:53:31PM +0800, Sharl.Jimh.Tsin wrote:

> hi,ALL
> it's me,i come here again and post my problem here.
> last weekend,i uninstalled the old version of nginx (1.0.4),and
> installed the newest development version 1.1.1 on my VPS.
>
> but,unfortunately that i found that nginx still used the UTC timezone
> not CST locally.
>
> that's strange.Can someone help me fix the problem? Thanks a lot :)

By default nginx uses timezone as set during startup (either in TZ
environment variable, or system's default one).

Looks like you just have it set to UTC while starting nginx (only
set CST for your particular user?).

If in doubt how to correctly set timezone on your system, you may
do so explicitly in nginx config via "env" directive (see [1]):

env TZ=CST;

(note that using CST explicitly may not be a good idea, as it
won't account for daylight saving changes if there are any in your
area, you may want to use something like "TZ=America/Menominee"
instead)

[1] http://wiki.nginx.org/CoreModule#env

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Sharl.Jimh.Tsin August 30, 2011 07:54AM

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

Maxim Dounin August 30, 2011 08:16AM

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

Sharl.Jimh.Tsin August 30, 2011 08:32AM

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

Maxim Dounin August 30, 2011 11:52AM

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

Sharl.Jimh.Tsin August 30, 2011 10:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready