[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Time zone trouble without time zones being involved
From: |
Yuri Khan |
Subject: |
Re: Time zone trouble without time zones being involved |
Date: |
Mon, 16 May 2016 22:06:08 +0600 |
On Mon, May 16, 2016 at 9:47 PM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> | bash-4.3:micha:test-repo$ git log --pretty=format:%ad --date=format:%s -n1
> | 1463254759
> | bash-4.3:micha:test-repo$ git cat-file commit HEAD
> | tree 45b5897f752b636a5dc6d101cb2a14dba4751cd0
> | parent c56aab0f0de7335ffd579702b987e67ce0680af8
> | author Michael Heerdegen <michael_heerdegen@web.de> 1463251159 +0200
> | committer Michael Heerdegen <michael_heerdegen@web.de> 1463251159 +0200
So, for the time being, as a workaround, you can use something like
"git cat-file commit HEAD | sed -nr 's/^author .* ([0-9]+)
[-+][0-9]+$/\1/p; t'" to get the UTC timestamp from the last commit.