无法更改GitLab时区 [英] Unable to change GitLab timezone

查看:219
本文介绍了无法更改GitLab时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过Web UI更改个人资料的GitLab时区时,我遇到了一点问题.

I am having a little bit of an issue trying to find where to change the GitLab timezone for my profile through the web UI.

查看其他帖子和文档,其中提到Public emailPreferred language之间有一个选项,我无法在个人资料设置下找到该选项.

Looking at some other posts and documentation which mentioned there was an option between Public email and Preferred language, this option I am unable to find under my profile settings.

希望其他人也遇到了同样的问题,并找到了解决方案,这可以帮助我指出正确的方向

Hopefully someone else has experienced the same issue, and found a solution to this, that could help point me in the right direction

推荐答案

如果GitLab UI未公开此内容,则需要修改GitLab配置本身(config/gitlab.rb,或对于Omnibus:/etc/gitlab/gitlab.rb).

If this is not exposed by the GitLab UI, you would need to modify the GitLab configuration itself (config/gitlab.rb, or for Omnibus: /etc/gitlab/gitlab.rb).

请参阅"更改时区"

可以在config/gitlab.yml中更改全局时区配置参数:

The global time zone configuration parameter can be changed in config/gitlab.yml:

# time_zone: 'UTC'

如果要更改GitLab应用程序的默认时区,请取消注释并自定义.

Uncomment and customize if you want to change the default time zone of GitLab application.

要查看所有可用时区,请运行bundle exec rake time:zones:all.

To see all available time zones, run bundle exec rake time:zones:all.

安装Omnibus后,运行:

With Omnibus installations, run:

gitlab-rake time:zones:all`
# edit the timezone
gitlab-ctl reconfigure
gitlab-ctl restart

这篇关于无法更改GitLab时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆