Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC 2/5] Pretty Print: show tz when using DATE_LOCAL

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:04

Michael Witten [off-list ref] writes:
Allow me to restate what I think you are saying:

How about having [the still deprecated] --date=local (that is, DATE_LOCAL)
option produce the old behavior, but have every combination of date mode
options that does not involve DATE_LOCAL always emit the time zone.

In other words, all of these do not emit a time zone:

  --date=local
  --date=local --time-zone=local
  --date=local --time-zone=default   # --time-zone is ignored for simplicity.
Yeah.  It is even plausible to extend --date further so that we can
express things like

    --date='%a %b %d %H:%M:%S %Y'
    --date='%a %b %d %H:%M:%S %Y %z'

The former would be equivalent to --date[-format]=local, the latter would
be equivalent to --date[-format]=default.

Or something like that [warning: without morning caffeine yet] :-) 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help