With --date=local
git log
shows dates in my (user's) timezone:
$ git log --date=local -3 --pretty=tformat:'%cd %h' --abbrev-commit
Thu Dec 18 15:22:11 2014 dc20f74
Thu Dec 18 14:01:26 2014 06c214f
Tue Nov 4 03:48:44 2014 ac33158
The man-page says
-- date [...] Only takes effect for dates shown in human-readable format, such as when using --pretty.
But with ISO format %ci
it does not take effect, as a matter of fact --date=local
and --date=default
product the exact same output:
$ git log --date=local -3 --pretty=tformat:'%ci %h' --abbrev-commit
2014-12-18 23:22:11 +0000 dc20f74
2014-12-18 22:01:26 +0000 06c214f
2014-11-04 17:18:44 +0530 ac33158
$ git log --date=default -3 --pretty=tformat:'%ci %h' --abbrev-commit
2014-12-18 23:22:11 +0000 dc20f74
2014-12-18 22:01:26 +0000 06c214f
2014-11-04 17:18:44 +0530 ac33158
How can I see git log in a less verbose format in my local timezone? Ideally I would like to to see them in '%C%m%dT%H%M%S'
, to use the unix date syntax.