# Date format in 'git log' should be in local timezone

2 messages from 2014-01-18 to 2014-01-18. Participants: Yuri, Jonathan Nieder.
Thread: https://gitlist.dev/t/35683

## Yuri, 2014-01-18 00:11

Subject: Date format in 'git log' should be in local timezone
Message-ID: <52D9C69C.2020006@rawbw.com>
URL: https://gitlist.dev/e/52D9C69C.2020006%40rawbw.com

```
Currently git log mixes timezones in the date records in the same log, 
so the following dates wold appear in one log:
Date:   Thu Jan 16 17:11:28 2014 -0800
Date:   Thu Jan 16 20:10:04 2014 -0500

Timezone here doesn't help the log reader at all. It doesn't even 
reflect the actual location of the submitter. Instead, it should be 
converted to the local TZ of the client. This will make it easier to 
read and understand the time.

Even further, timezone shouldn't even be stored by the git server. It 
should just store the UTC time, following the approach how time is 
managed in most UNIX-like systems.

Yuri

```

## Jonathan Nieder, 2014-01-18 00:28

Subject: Re: Date format in 'git log' should be in local timezone
Message-ID: <20140118002848.GC18964@google.com>
URL: https://gitlist.dev/e/20140118002848.GC18964%40google.com
In-Reply-To: <52D9C69C.2020006@rawbw.com>

```
Hi,

Yuri wrote:

> Timezone here doesn't help the log reader at all. It doesn't even
> reflect the actual location of the submitter. Instead, it should be
> converted to the local TZ of the client. This will make it easier to
> read and understand the time.

Does "git log --date=local" or "git log --date=relative" do what
you're looking for?

If so, you can set that permanently by setting 'date = local' or
'date = relative' in the [log] section of your ~/.gitconfig.  See
log.date in the git-config(1) manpage for details.

I wonder if 'date = relative' would make a better default.

> Even further, timezone shouldn't even be stored by the git server.

I've found it very useful and would consider that a regression, at
least.

Thanks and hope that helps,
Jonathan

```
