Change your time zone

  • Tier: Free, Premium, Ultimate
  • Offering: GitLab 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:

  1. The specified time zone must be in tz format. You can use the timedatectl command to see the available time zones:

    Copy to clipboard
    timedatectl list-timezones
  2. Change the time zone, for example to America/New_York.

  1. Edit /etc/gitlab/gitlab.rb:

    Copy to clipboard
    gitlab_rails['time_zone'] = 'America/New_York'
  2. Save the file, then reconfigure and restart GitLab:

    Copy to clipboard
    sudo gitlab-ctl reconfigure
    sudo gitlab-ctl restart