chproxy icon indicating copy to clipboard operation
chproxy copied to clipboard

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

Open bigdata-spec opened this issue 3 years ago • 1 comments

image

The time zone in the chproxy log is incorrect, how to solve it?

bigdata-spec avatar Sep 22 '22 08:09 bigdata-spec

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

mga-chka avatar Sep 23 '22 13:09 mga-chka