Welcome! Log In Create A New Profile

Advanced

Re: How to log the time in the UTC time format?

Igor Sysoev
December 01, 2009 02:24AM
On Tue, Dec 01, 2009 at 12:52:24AM +0300, Maxim Dounin wrote:

> Hello!
>
> On Mon, Nov 30, 2009 at 04:31:20PM -0500, naltimari wrote:
>
> > I need my logs in UTC time format, but nginx by default uses the local time format (I guess in GMT format).
> >
> > Can it be done? How?
>
> There is no "UTC time format". If you mean time zone - just set
> appropriate one in environment while starting nginx (via TZ
> environment variable).

BTW, TZ can be set in nginx.conf at global level:

env TZ=UTC;


--
Igor Sysoev
http://sysoev.ru/en/

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

How to log the time in the UTC time format?

naltimari November 30, 2009 04:31PM

Re: How to log the time in the UTC time format?

Maxim Dounin November 30, 2009 04:56PM

Re: How to log the time in the UTC time format?

naltimari November 30, 2009 05:06PM

Re: How to log the time in the UTC time format?

Maxim Dounin November 30, 2009 06:34PM

Re: How to log the time in the UTC time format?

naltimari November 30, 2009 06:52PM

Re: How to log the time in the UTC time format?

rmalayter December 04, 2009 10:11AM

Re: How to log the time in the UTC time format?

Igor Sysoev December 01, 2009 02:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
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