GitLab stores commits in UTC instead of local time

Problem to Solve

Commits generated from GitLab are all stored at with UTC instead of the users local time. This makes it hard to understand the time commits took place without additionally configuring individual clients to convert time zones.

Additional Details

  1. Pull repository to local
  2. Run git log to check merge history, the date of merge is UTC format.

Customer know that we can use git config --global log.date local to set it as local time, but some of their users don't know, they hope to set this configuration in server side.

image

Proposal

Store the configured timezone in the commit, rather than unconditionally storing commits in UTC

From: https://gitlab.com/gitlab-jh/gitlab/-/issues/62

Edited by Kai Armstrong