chproxy icon indicating copy to clipboard operation
chproxy copied to clipboard

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

Open jim-zong opened this issue 3 years ago • 5 comments

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

jim-zong avatar Jul 22 '21 09:07 jim-zong

Without further info I would say that the time zone is incorrect on the machine where you run chproxy.

vfoucault avatar Aug 19 '21 12:08 vfoucault

My time zone is also wrong, I checked the machine's time zone is correct.

$ date -R Mon, 06 Sep 2021 09:11:12 +0800

The time recorded in the log is: DEBUG: 2021/09/06 01:12:34 proxy.go:113.

sszc avatar Sep 06 '21 01:09 sszc

Yes, I also found it. How can I solve it? INFO: 2022/01/21 09:02:37 main.go:53: Loading config "/app/chproxy/config/config.yml": successful INFO: 2022/01/21 09:02:37 main.go:152: Serving http on ":9090

# date "+%Y-%m-%d %H:%M:%S" 2022-01-21 17:08:09

2416210017 avatar Jan 21 '22 09:01 2416210017

Me too. How to solve it ?

ryze124 avatar Aug 08 '22 05:08 ryze124

@1241407808 @2416210017 @sszc @jim-zong @vfoucault Hello,How to solve it ?

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

I'm closing since the following issue is a duplicated https://github.com/ContentSquare/chproxy/issues/236 Currently the logs are written in UTC, there is no way to use the local timezone. If you have time, feel free to modify the code to allow UTC or local timezone in the logs (it shouldn't be a big PR)

mga-chka avatar Sep 27 '23 08:09 mga-chka