Skip to content

Commit ddd1d42

Browse files
David Coyeread
David Coy
authored andcommitted
Docs: Add TZInfo formatted timezones
1 parent 881d507 commit ddd1d42

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

doc/workflow/timezone.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
# Changing your time zone
22

33
The global time zone configuration parameter can be changed in `config/gitlab.yml`:
4+
45
```
5-
# time_zone: 'UTC'
6+
# time_zone: 'UTC'
67
```
78

8-
Uncomment and customize if you want to change the default time zone of GitLab application.
9+
Uncomment and customize if you want to change the default time zone of the GitLab application.
10+
11+
12+
## Viewing available timezones
913

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

12-
With Omnibus installations, run `gitlab-rake time:zones:all`.
16+
For Omnibus installations, run `gitlab-rake time:zones:all`.
17+
18+
NOTE: **Note:**
19+
Currently, this rake task does not list timezones in TZInfo format required by GitLab Omnibus during a reconfigure: [#58672](https://gitlab.com/gitlab-org/gitlab-ce/issues/58672).
1320

1421
## Changing time zone in omnibus installations
1522

1623
GitLab defaults its time zone to UTC. It has a global timezone configuration parameter in `/etc/gitlab/gitlab.rb`.
1724

18-
To update, add the time zone that best applies to your location. Here are two examples:
25+
To obtain a list of timezones, log in to your GitLab application server and run a command that generates a list of timezones in TZInfo format for the server. For example, install `timedatectl` and run `timedatectl list-timezones`.
26+
27+
To update, add the timezone that best applies to your location. For example:
28+
1929
```
2030
gitlab_rails['time_zone'] = 'America/New_York'
2131
```
22-
or
23-
```
24-
gitlab_rails['time_zone'] = 'Europe/Brussels'
25-
```
2632

27-
After you added this field, reconfigure and restart:
33+
After adding the configuration parameter, reconfigure and restart your GitLab instance:
34+
2835
```
2936
gitlab-ctl reconfigure
3037
gitlab-ctl restart
3138
```
39+

0 commit comments

Comments
 (0)