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

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

问题描述

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

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

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

解决方案

如果 GitLab 用户界面没有公开,您需要修改 GitLab 配置本身(config/gitlab.rb,或者对于 Omnibus:/etc/gitlab/gitlab.rb).

请参阅

参见文档问题.

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.

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

解决方案

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).

See "Changing your time zone "

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

# time_zone: 'UTC'

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

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

With Omnibus installations, run:

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


Note: since Sep. 2018, this has evolved:

See GitLab 14.2 (August 2021)

Display local time on user’s profile

Local time is now displayed on user profiles.

In previous releases, you could set the timezone but it was not visible throughout GitLab. This improvement is extremely helpful for distributed teams to help others know when others are likely to be available.

See Documentation and Issue.

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

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