Re: [Bug] git-log prints wrong unixtime with --date=format:%s
- From
Michael Heerdegen <michael_heerdegen@web.de>
- Date
- May 17, 2016, 17:25 UTC
- Message-ID
- <8760ucoaus.fsf@web.de>
- In-Reply-To
- <87vb2d37ea.fsf@web.de>
Michael Heerdegen <michael_heerdegen@web.de> writes:
Show 7 quoted lines
> 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.