#1 2015-09-15 20:39:27

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

TSynLog write UTC time but regadless timezone

@ab, in the log files the time disregards the time zone, in my case is GMT -0300 (Buenos Aires, Argentina). Is there anyway of to correct this ?

Thanks.


Esteban

Offline

#2 2015-09-16 18:20:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,266
Website

Re: TSynLog write UTC time but regadless timezone

This was a desired change.
See http://synopse.info/fossil/info/4323913 … 0baa26f22f

We may add an option to allow local time in the log.

Offline

#3 2015-09-16 18:53:19

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

Re: TSynLog write UTC time but regadless timezone

Yes @ab, with that option would be grateful.

Thanks.


Esteban

Offline

#4 2015-09-17 11:15:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,266
Website

Re: TSynLog write UTC time but regadless timezone

We have added TSynLogFamily.LocalTimeStamp property to force local date/time logging instead of default UTC.
See http://synopse.info/fossil/info/9e3e91b9c

Hope it helps.

Offline

#5 2015-09-17 13:29:39

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 336

Re: TSynLog write UTC time but regadless timezone

Thank @ab, this works ok.


Esteban

Offline

Board footer

Powered by FluxBB