How to log the time in the UTC time format?

Maxim Dounin mdounin at
Tue Dec 1 00:52:24 MSK 2009


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).

Maxim Dounin

More information about the nginx mailing list