I’m using isaac sim with docker. Currently the docker logs timestamp is UTC time. But I want it to be local time. So are there any flags or setting to do that?
You can try running the container with these volume mounts:
-v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro
I tried your solution but not working.
It seems the
/etc/localtime is a symbol link to a timezone file. When mounting it, the soft link seems not working. In the docker container the
/etc/localtime still links to UTC timezone file. I’m not familiar with docker mount operations.
But I try to rewrite the
/etc/localtime link, and make it links to local time. But the log timezone is still UTC
root@0e96b666a153:/isaac-sim# ll /etc/localtime lrwxrwxrwx 1 root root 33 Sep 28 11:06 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai root@0e96b666a153:/isaac-sim# cat /etc/timezone Asia/Shanghai