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

docs: add custom time zone example #651

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

hljwkwm
Copy link
Contributor

@hljwkwm hljwkwm commented Feb 21, 2024

使用Docker打出的镜像,默认会使用0区时区,会影响到日志、数据库等时间的显示,考虑到全球化,可在镜像运行时,设置环境变量TZ即可解决该问题,TZ列表可参考:https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a6737e6) 96.89% compared to head (7cfd4ec) 96.84%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #651      +/-   ##
==========================================
- Coverage   96.89%   96.84%   -0.06%     
==========================================
  Files         180      180              
  Lines       17598    17598              
  Branches     2296     2292       -4     
==========================================
- Hits        17052    17043       -9     
- Misses        546      555       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fengmk2 fengmk2 changed the title fix: fix custom time zone. docs: add custom time zone example Feb 21, 2024
@fengmk2 fengmk2 merged commit ae83136 into cnpm:master Feb 21, 2024
9 of 12 checks passed
@hljwkwm hljwkwm deleted the fix_timezone branch February 21, 2024 13:56
@hljwkwm
Copy link
Contributor Author

hljwkwm commented Feb 22, 2024

感谢大佬帮忙修改commit massage,每天学习一个小技巧😁

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.

2 participants