GitLab time zone issues

Posted on Thu 23 October 2014 in blog

GitLab is a great open source GitHub clone, which I've started using for tracking my personal Git repos.

One frustrating thing I've found with GitLab however, is its handling of time zones.

Read:

Apparently GitLab doesn't detect the user's timezone (or store it in their profile) and display times accordingly. Everything outside of the Git timestamps appears to be tracked in UTC.

To fix this for my local server, I edited /opt/gitlab/embedded/service/gitlab-rails/config/application.rb and specified config.time_zone = 'Eastern Time (US & Canada)'.

Update:

In version 7.5.0, this configuration option was moved to gitlab.yml. Now you don't have to re-set this option after every upgrade. Instructions for how to set it for an Omnibus install (in /etc/gitlab/gitlab.rb) are here.