> 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
