Tidy up timezone topic
This commit is contained in:
parent
dd9b303fbc
commit
1be94ee5b3
|
@ -2,13 +2,12 @@
|
||||||
|
|
||||||
The global time zone configuration parameter can be changed in `config/gitlab.yml`:
|
The global time zone configuration parameter can be changed in `config/gitlab.yml`:
|
||||||
|
|
||||||
```
|
```text
|
||||||
# time_zone: 'UTC'
|
# time_zone: 'UTC'
|
||||||
```
|
```
|
||||||
|
|
||||||
Uncomment and customize if you want to change the default time zone of the GitLab application.
|
Uncomment and customize if you want to change the default time zone of the GitLab application.
|
||||||
|
|
||||||
|
|
||||||
## Viewing available timezones
|
## Viewing available timezones
|
||||||
|
|
||||||
To see all available time zones, run `bundle exec rake time:zones:all`.
|
To see all available time zones, run `bundle exec rake time:zones:all`.
|
||||||
|
@ -26,14 +25,13 @@ To obtain a list of timezones, log in to your GitLab application server and run
|
||||||
|
|
||||||
To update, add the timezone that best applies to your location. For example:
|
To update, add the timezone that best applies to your location. For example:
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
gitlab_rails['time_zone'] = 'America/New_York'
|
gitlab_rails['time_zone'] = 'America/New_York'
|
||||||
```
|
```
|
||||||
|
|
||||||
After adding the configuration parameter, reconfigure and restart your GitLab instance:
|
After adding the configuration parameter, reconfigure and restart your GitLab instance:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
gitlab-ctl reconfigure
|
gitlab-ctl reconfigure
|
||||||
gitlab-ctl restart
|
gitlab-ctl restart
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue