How to log the time in the UTC time format?

naltimari nginx-forum at
Tue Dec 1 02:52:22 MSK 2009

Maxim Dounin Wrote:

> The only option for now is to use something like
> embedded perl to construct time in arbitrary format
>     perl_set $tt 'sub { scalar localtime }';

Although it is not appropriate for me, thanks for the input, I never knew this could done!

Well, I'm going to parse the log myself, so I can always change the time format later.

I'm really not sure if UTC will make any difference, I was only looking it up as a client request.

Thanks for your help!

Posted at Nginx Forum:,26862,26886#msg-26886

More information about the nginx mailing list