chproxy
chproxy copied to clipboard
[BUG] <title> chproxy log is incorrect, how to solve it

The time zone in the chproxy log is incorrect, how to solve it?
CH proxy relies on golang logs package using UTC and not the local timezone: https://github.com/ContentSquare/chproxy/blob/master/log/log.go#L12 This might be why you're having this behavior. For the moment the UTC is hardcoded (cf the code I gave you) and there is no way to switch to the local time zone. So if you want the same time, you should switch your server to UTC.
Feel create a PR to let the choice of UTC vs local timezone in the config.yml