Change your time zone
- Tier: Free, Premium, Ultimate
- Offering: Self-managed
Users can set their time zone in their profile. New users do not have a default time zone and must explicitly set it before it displays on their profile. On GitLab.com, the default time zone is UTC.
The default time zone in GitLab is UTC, but you can change it to your liking.
To update the time zone of your GitLab instance:
-
The specified time zone must be in tz format. You can use the
timedatectl
command to see the available time zones:timedatectl list-timezones
-
Change the time zone, for example to
America/New_York
.
-
Edit
/etc/gitlab/gitlab.rb
:gitlab_rails['time_zone'] = 'America/New_York'
-
Save the file, then reconfigure and restart GitLab:
sudo gitlab-ctl reconfigure sudo gitlab-ctl restart
-
Export the Helm values:
helm get values gitlab > gitlab_values.yaml
-
Edit
gitlab_values.yaml
:global: time_zone: 'America/New_York'
-
Save the file and apply the new values:
helm upgrade -f gitlab_values.yaml gitlab gitlab/gitlab
-
Edit
docker-compose.yml
:version: "3.6" services: gitlab: environment: GITLAB_OMNIBUS_CONFIG: | gitlab_rails['time_zone'] = 'America/New_York'
-
Save the file and restart GitLab:
docker compose up -d
-
Edit
/home/git/gitlab/config/gitlab.yml
:production: &base gitlab: time_zone: 'America/New_York'
-
Save the file and restart GitLab:
# For systems running systemd sudo systemctl restart gitlab.target # For systems running SysV init sudo service gitlab restart
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support