From: Jonathan Nieder <jrnieder@gmail.com>
To: Yuri <yuri@rawbw.com>
Cc: git@vger.kernel.org
Subject: Re: Date format in 'git log' should be in local timezone
Date: Fri, 17 Jan 2014 16:28:48 -0800 [thread overview]
Message-ID: <20140118002848.GC18964@google.com> (raw)
In-Reply-To: <52D9C69C.2020006@rawbw.com>
Hi,
Yuri wrote:
> Timezone here doesn't help the log reader at all. It doesn't even
> reflect the actual location of the submitter. Instead, it should be
> converted to the local TZ of the client. This will make it easier to
> read and understand the time.
Does "git log --date=local" or "git log --date=relative" do what
you're looking for?
If so, you can set that permanently by setting 'date = local' or
'date = relative' in the [log] section of your ~/.gitconfig. See
log.date in the git-config(1) manpage for details.
I wonder if 'date = relative' would make a better default.
> Even further, timezone shouldn't even be stored by the git server.
I've found it very useful and would consider that a regression, at
least.
Thanks and hope that helps,
Jonathan
prev parent reply other threads:[~2014-01-18 0:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-18 0:11 Date format in 'git log' should be in local timezone Yuri
2014-01-18 0:28 ` Jonathan Nieder [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140118002848.GC18964@google.com \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=yuri@rawbw.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).