From: Kevin Cernekee <cernekee@gmail.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH 2/2] gitweb: introduce localtime feature
Date: Thu, 17 Mar 2011 13:12:39 -0700 [thread overview]
Message-ID: <AANLkTi=+aAeV4mx4YTHw4rWZahLS0tnjXsDLEgoAj9-o@mail.gmail.com> (raw)
In-Reply-To: <m3d3lq57vw.fsf@localhost.localdomain>
On Thu, Mar 17, 2011 at 4:01 AM, Jakub Narebski <jnareb@gmail.com> wrote:
Jakub,
Thanks for all of your constructive feedback. I have taken your
suggestions into account and posted an updated series of patches.
> This does not describe why would one want such way of displaying
> timestamps, and which views would be affected.
>
> BTW. should it be timezone of web server (machine where gitweb is
> run), or local time of author / committer / tagger as described in the
> timezone part of git timestamp?
The case I am currently trying to improve is the one in which all
developers are at a single site.
In the open source world it is common to have developers scattered all
over the globe, so some of them will inevitably have to perform
timezone conversions.
But Git is becoming a popular tool in the private sector and it is
common to have most/all contributors based in a single office. In the
latter case, it is helpful to display the local timezone instead of
GMT. This also helps make the data more readable by program managers
and other non-developers who have an interest in tracking the project.
> Why project specific override is not supported? I think it might make
> sense to enable this feature on project-by-project basis; some
> projects might be dispersed geographically, some might not.
Mostly ease of testing. I did not need it for any of my projects.
It turned out to be a simple change, and it is in v2. The cases I tested were:
default 0
default 1
override 1, project unset
override 1, project 0
override 1, project 1
> Is it still an RFC 2822 conformant date? If it is not, then above
> change is invalid, and we have to implement this feature in different
> way.
I believe it is still valid.
Original date: Thu, 17 Mar 2011 02:11:05 +0000
New date: Wed, 16 Mar 2011 19:11:05 -0700
Sample date from RFC 2822 Appendix A: Fri, 21 Nov 1997 09:55:06 -0600
> Hmmm... I wonder if it wouldn't be better to print both times (perhaps
> reversed) in this case...
I have submitted a third patch which does this.
next prev parent reply other threads:[~2011-03-17 20:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 2:15 [PATCH 1/2] gitweb: fix #patchNN anchors when path_info is enabled Kevin Cernekee
2011-03-16 2:15 ` [PATCH 2/2] gitweb: introduce localtime feature Kevin Cernekee
2011-03-17 11:01 ` Jakub Narebski
2011-03-17 18:26 ` Junio C Hamano
2011-03-17 20:12 ` Kevin Cernekee [this message]
2011-03-17 22:30 ` Jakub Narebski
2011-03-17 10:43 ` [PATCH 1/2] gitweb: fix #patchNN anchors when path_info is enabled Jakub Narebski
2011-03-17 18:40 ` Junio C Hamano
2011-03-17 19:19 ` Jakub Narebski
2011-03-17 20:55 ` Junio C Hamano
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='AANLkTi=+aAeV4mx4YTHw4rWZahLS0tnjXsDLEgoAj9-o@mail.gmail.com' \
--to=cernekee@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jnareb@gmail.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).