Closed beardstack closed 1 year ago
it uses the locally set timezone of the system
It ought to respect the TZ environment variable if you need to forcibly change it to be different from the system's default, e.g.:
My system's time:
$ lokinet
[2022-11-09 14:52:52] [+0.001s] [:info|daemon/lokinet.cpp:231] starting up lokinet-0.9.10-a3214f21 Our Lord And Savior
[2022-11-09 14:52:52] [+0.001s] [:info|daemon/lokinet.cpp:237] Using config file: "/home/jagerman/.lokinet/lokinet.ini"
[2022-11-09 14:52:52] [+0.002s] [router:debug|llarp/router/router.cpp:421] Configuring router
[2022-11-09 14:52:52] [+0.002s] [router:debug|llarp/router/router.cpp:433] Starting RPC server
[2022-11-09 14:52:52] [+0.003s] [:info|llarp/router/router.cpp:1263] Bound RPC server to tcp://127.0.0.1:1190
Pacific time:
$ TZ=America/Vancouver lokinet
[2022-11-09 10:52:53] [+0.001s] [:info|daemon/lokinet.cpp:231] starting up lokinet-0.9.10-a3214f21 Our Lord And Savior
[2022-11-09 10:52:53] [+0.001s] [:info|daemon/lokinet.cpp:237] Using config file: "/home/jagerman/.lokinet/lokinet.ini"
[2022-11-09 10:52:53] [+0.002s] [router:debug|llarp/router/router.cpp:421] Configuring router
[2022-11-09 10:52:53] [+0.002s] [router:debug|llarp/router/router.cpp:433] Starting RPC server
[2022-11-09 10:52:53] [+0.003s] [:info|llarp/router/router.cpp:1263] Bound RPC server to tcp://127.0.0.1:1190
Is there a way to change the log timezone? It seems to be set to GMT and makes things harder to troubleshoot