Unable to change GitLab timezone

萝らか妹 提交于 2019-12-21 21:12:51

问题


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


回答1:


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



回答2:


GitLab does not currently support specifying the timezone per-user. It is a global configuration for the entire GitLab server.

There was a merge request to add it (from July 2015), but it doesn't seem to have been accepted.

There was a similar question about this to the @gitlab Twitter account. The reply was:

No, the timezone settings are instance wide.



来源:https://stackoverflow.com/questions/52175664/unable-to-change-gitlab-timezone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!