Subject: Re: [Bug] git-log prints wrong unixtime with --date=format:%s

From: Michael Heerdegen <[email-masked]>
Date: Tue, 17 May 2016 19:25:31 +0200

Michael Heerdegen <[email-masked]> writes:

> the command
>
>    git log --pretty=format:%ad --date=format:%s
>
> displays wrong unixtime values; apparently how much the printed value
> differs from the expected value depends on the system's time zone and
> whether daylight savings time is enabled or not.

Two more comments:

  - --date=raw seems to work correctly (though the doc tells it would
    also use "%s").

  - When specifying versions like @{N hours}, the result seems to differ
    (by one hour?) from what I expect, too.

Thanks,

Michael.