git: timezone and timestamp format

If you ask about git log, you can try and select most correct form from:

git log --date={relative,local,default,iso,rfc}

--date=local seems to be the best candidate.

To make this permanent, use git config --global log.date local.


Unfortunately, using git log --date=local as explained in previous answers changes the output format.

To keep the format as asked (YYYY-MM-DD HH:mm) I had to use:

git log --date=iso-local

But that only works on git 2.7 or above.


TZ=UTC git log --date=local

in order to get non-local-timezone one-timezone output.


git log --date=local

Does the trick.

git config --global log.date local