Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timezone and timeformat #572

Merged
merged 2 commits into from
Mar 20, 2021
Merged

add timezone and timeformat #572

merged 2 commits into from
Mar 20, 2021

Conversation

tonywangcn
Copy link
Contributor

为 logx 增加 time format 和 time zone 设置选项,默认为中国时区,效果如下: 2021-03-19T16:00:39.556+08

@kevwan
Copy link
Contributor

kevwan commented Mar 19, 2021

不需要的,你在Dockerfile里设置时区就好了,go-zero是时区中立的哈

@kevwan
Copy link
Contributor

kevwan commented Mar 19, 2021

你看goctl docker命令生成的Dockerfile

@tonywangcn
Copy link
Contributor Author

timeformat 呢?logrus 这类流行的日志组件基本都可设置 time format

@kevwan
Copy link
Contributor

kevwan commented Mar 20, 2021

timeformat 呢?logrus 这类流行的日志组件基本都可设置 time format

这个可以的

@tonywangcn
Copy link
Contributor Author

可以了。只保留了 time format

@kevwan kevwan merged commit 52b4f8c into zeromicro:master Mar 20, 2021
nanomiter pushed a commit to nanomiter/go-zero that referenced this pull request May 17, 2021
* add timezone and timeformat

* rm time zone and keep time format

Co-authored-by: Tony Wang <tonywang.data@gmail.com>
jeyrce pushed a commit to jeyrce/go-zero that referenced this pull request Aug 25, 2021
* add timezone and timeformat

* rm time zone and keep time format

Co-authored-by: Tony Wang <tonywang.data@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants