Reactor log timestamps
-
Timestamps do not match the UI time or the system time:
[latest-21286]2021-10-16T03:10:43.922Z <Engine:INFO> Engine#1 master timer tick, local time "10/15/2021, 8:10:43 PM" (TZ offset -420 mins from UTC)
I tried adding TZ to the docker container with "docker exec reactor apk add tzdata" but there was no change in log timestamps. I have the TZ in the compose file as:
environment: REACTOR_DATA_PREFIX: /var/reactor TZ: America/Los_Angeles
This does set the UI time correctly. The Reactor config is also set correctly:
location: city: "Los Angeles"
-
@tunnus is correct, log timestamps are always UTC. This ensures that logs are uniform to read/examine regardless of timezone, and that the displayed timing values in the logs match the timestamps without additional maths. The master tick message @Buxton posted is specifically crafted that way to establish the relationship between log timestamps and real time.
Real time displayed in the UI is controlled by the browser, not the host. That is why the UI displays two different rolling times in the top bar: one is the browser's local time, and the other is the host's time in its time zone.
-
@tunnus is correct, log timestamps are always UTC. This ensures that logs are uniform to read/examine regardless of timezone, and that the displayed timing values in the logs match the timestamps without additional maths. The master tick message @Buxton posted is specifically crafted that way to establish the relationship between log timestamps and real time.
Real time displayed in the UI is controlled by the browser, not the host. That is why the UI displays two different rolling times in the top bar: one is the browser's local time, and the other is the host's time in its time zone.
@toggledbits said in Reactor log timestamps:
@tunnus is correct, log timestamps are always UTC.
This is the way
C
-
@toggledbits said in Reactor log timestamps:
@tunnus is correct, log timestamps are always UTC.
This is the way
C
-
@toggledbits said in Reactor log timestamps:
@tunnus is correct, log timestamps are always UTC.
This is the way
C
-
T toggledbits locked this topic on