set timezone to the configuration of logger

29 views
Skip to first unread message

Luciano Rossi

unread,
Sep 14, 2016, 10:58:57 AM9/14/16
to try...@googlegroups.com
Hi!

I have set my debian system to be America/Argentina/Buenos_Aires
(/etc/timezone).

But, the logger of trytond throws the ouput to be GMT, and I would like
to be GMT-3.

Do you know what is missing at logger configuration? My log
configuration is the default of tryton documentation[0].

[0] http://doc.tryton.org/4.0/trytond/doc/topics/logs.html?highlight=log

Cheers!
--
Luciano Rossi - lu...@gcoop.coop
http://gcoop.coop | Cooperativa de Software Libre
Julián Alvarez 958 CABA C1414DRT +54 11 4771-0055

Cédric Krier

unread,
Sep 15, 2016, 4:25:31 AM9/15/16
to try...@googlegroups.com
On 2016-09-14 11:31, Luciano Rossi wrote:
> Hi!
>
> I have set my debian system to be America/Argentina/Buenos_Aires
> (/etc/timezone).
>
> But, the logger of trytond throws the ouput to be GMT, and I would like to
> be GMT-3.
>
> Do you know what is missing at logger configuration? My log configuration is
> the default of tryton documentation[0].

trytond always run under UTC timezone despite OS configuration.
This is why the logging shows UTC datetime. I do not think it is
possible to configure logging module to make timezone conversion but
maybe a custom handler could.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Luciano Rossi

unread,
Sep 15, 2016, 9:52:11 AM9/15/16
to try...@googlegroups.com
El 15/09/16 a las 05:20, Cédric Krier escribió:
> On 2016-09-14 11:31, Luciano Rossi wrote:
>> Hi!
>>
>> I have set my debian system to be America/Argentina/Buenos_Aires
>> (/etc/timezone).
>>
>> But, the logger of trytond throws the ouput to be GMT, and I would like to
>> be GMT-3.
>>
>> Do you know what is missing at logger configuration? My log configuration is
>> the default of tryton documentation[0].
>
> trytond always run under UTC timezone despite OS configuration.
> This is why the logging shows UTC datetime. I do not think it is
> possible to configure logging module to make timezone conversion but
> maybe a custom handler could.
>

Perhaps, this is the way to go:

http://stackoverflow.com/a/27865750
Reply all
Reply to author
Forward
0 new messages