The Time Codec uses system time to determine the correct day to use for encoding/decoding, which causes incorrect decoding when used later than the original message time.
We can fix this by updating the Time Codec to take a clock (defaulting to system_clock) that can be set to a custom clock when decoding later (e.g., from a log file).
The Time Codec uses system time to determine the correct day to use for encoding/decoding, which causes incorrect decoding when used later than the original message time.
We can fix this by updating the Time Codec to take a clock (defaulting to system_clock) that can be set to a custom clock when decoding later (e.g., from a log file).