I think part of the problem might be django setting the timezone:
https://docs.djangoproject.com/en/dev/ref/settings/#time-zone since the
server already has its localtime as UTC. My theory is that the uwsgi worker
is picking up this timezone change which presumably is doing the logging
for requests.

On Tue, May 29, 2012 at 11:20 AM, Roberto De Ioris <[email protected]> wrote:

>
> > Dnia wtorek, 29 maja 2012 10:36:22 Andrew McHarg pisze:
> >> Is it possible to log in UTC even if localtime is set to a local
> >> timezone
> >> such as PST? Given this line of code in uwsgi_log:
> >>
> >>  rlen = strftime(sftime, 64, uwsgi.log_strftime, localtime(&now));
> >>
> >> I am guessing not :) but any help would be appreciated.
> >
> > --log-date  - prefix logs with date or a strftime string
> >
> > You can set any strftime format for date, but since strftime doesn't have
> > any
> > specifier for outputing UTC you can't get UTC dates.
> >
> >
>
> You can set the timezone for localtime() setting the TZ environment
> variable:
>
> --env TZ=UTC
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to