Re: git-2.13.0: log --date=format:%z not working
- From
Jeff King <peff@peff.net>
- Date
- Jun 2, 2017, 22:51 UTC
- Message-ID
- <20170602225148.drkl7obwhzypgjtr@sigill.intra.peff.net>
- In-Reply-To
- <22833.60191.771422.3111@a1i15.kph.uni-mainz.de>
On Sat, Jun 03, 2017 at 12:47:59AM +0200, Ulrich Mueller wrote:
Show 9 quoted lines
> >>>>> On Fri, 2 Jun 2017, Jeff King wrote: > > > The remaining question is whether we want to care about preserving the > > system %Z for the local-timezone case. > > No strong preference here. Maybe go for consistency, and have %Z > always return the same format (either empty, or same as %z). That > would at least prevent surprises when users switch from format-local > to format.
It also a lot easier to implement, which is nice.
I agree on the least surprise thing, but the flipside of this is that Git's use of strftime will behave differently than other programs on the system (e.g., "date +%Z").
-Peff