Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to change GitLab timezone

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

like image 421
Kodie Avatar asked Sep 05 '18 00:09

Kodie


2 Answers

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.

https://about.gitlab.com/images/14_2/tz_profile.png -- Display local time on user's profile

See Documentation and Issue.

like image 124
VonC Avatar answered Dec 13 '22 11:12

VonC


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.

like image 42
Mike Harris Avatar answered Dec 13 '22 11:12

Mike Harris