rosconsole icon indicating copy to clipboard operation
rosconsole copied to clipboard

Wrong timezone in logging output

Open DanyResasco opened this issue 4 years ago • 2 comments

Hi, I'm running the code in Ubuntu 20, with python3 and cpp14 I have a package with both python and cpp nodes, and I realize that my CPP logs are in UTC while the python logs are local time.

[ WARN] [21.10.2021 07:58:04 07:58:04 /camera] [INFO] [21.10.2021 09:58:04 09:58:04 /controller]

my lunch file has the env at the beginning of the file

    <env name="ROSCONSOLE_FORMAT"
        value="[${severity}] [${time:%d.%m.%Y %H:%M:%S} ${node}] [${file}:${function}:${line}]: ${message}"/>

I tried to add the timezone ${time:%d.%m.%Y %H:%M:%S %z} but only the python logs are affected.

Do you know how I can solve this issue?

DanyResasco avatar Oct 21 '21 08:10 DanyResasco

Any Update for this issue?

Kuo-Feng avatar Mar 30 '22 03:03 Kuo-Feng

not on my side. still have the same issue.

DanyResasco avatar Mar 30 '22 06:03 DanyResasco