From: Jakub Narebski <jnareb@gmail.com>
To: Kevin Cernekee <cernekee@gmail.com>
Cc: "John 'Warthog9' Hawley" <warthog9@eaglescrag.net>,
git@vger.kernel.org, Junio Hamano <gitster@pobox.com>
Subject: Re: [PATCH 1/1] gitweb: javascript ability to adjust time based on timezone
Date: Thu, 24 Mar 2011 21:19:30 +0100 [thread overview]
Message-ID: <201103242119.40214.jnareb@gmail.com> (raw)
In-Reply-To: <AANLkTincAcVQQtH+T9+K7tyBd0P5S=8YxXpsfrQ=68gE@mail.gmail.com>
On Thu, 24 Mar 2011, Kevin Cernekee wrote:
> On Wed, Mar 23, 2011 at 5:08 PM, John 'Warthog9' Hawley
> <warthog9@eaglescrag.net> wrote:
> > This patch takes the same basic goal, display the appropriate times
> > in a given timezone, and implements it in Javascript. This requires
> > adding / using a new class, dtcommit, which is based on the
> > dtstart/dtend microformats. Appropriate commit dates are wrapped in
> > a span with this class, and a title of the time in ISO8601 format.
>
> John,
>
> Thanks for coding this up. I tested it on a couple of different
> browsers and wanted to share my observations with you.
I wonder if there is any site that allows to check JavaScript for
compatibility with different browsers...
>
> First, the easy stuff:
>
> 1) "git am" complains about whitespace violations
It would be more helpful if you wrote here what are those whitespace
violations.
>
> 2) HH:MM:SS times need zero padding; otherwise you see:
>
> Tue, 8 Mar 2011 20:29:9 -0700
There is even padLeft function in gitweb.js ready to be (re)used...
[...]
> 4) IE6 does not seem to like ISO 8601 format:
>
> x = new Date("2011-03-09T03:29:09Z");
>
> This sets all fields to NaN. I suspect that getTime() values
> (milliseconds since 1970-01-01) are more portable.
Do you mean using epoch in title attribute, or fallback to parsing
ISO 8601 UTC format with regexps?
> I have attached a trivial patch for these four items; it applies on
> top of your original submission.
It would be much, much easier to review your patch if you either
put it inline at the end of your email, separating it from the rest
of email with e.g. "-- >8 --" separator (so called 'scissors'),
or at least using 'text/plain' as mimetype, '8bit' and not 'base64'
encoding, and perhaps 'disposition=inline' rather than
'disposition=attachement'.
[...]
> 6) Most U.S. timezones honor daylight savings, so they could be
> something like -0700 for part of the year, and -0800 for the rest of
> the year. Picking the "local" option would automatically adjust for
> this, but DST limits the usefulness of permanently storing a fixed TZ
> offset in the cookie.
Dealing with DST (zoneinfo library) is simply too hard for JavaScript
IMHO. What we could do is to store "local" in cookie, not a fixed TZ
offset (or perhaps store both as to not recalculate it).
> 8) The " + " popup menu is a little quirky. On FF 3.6 it partially
> collapses after selecting a value from the dropdown. On IE6 it shows
> "Error in parsing value for 'display'" and does not render. On Opera
> 11 it seemed to work OK.
>
> Firefox breakage: http://img217.imageshack.us/f/firefoxa.png/
>
> I'm wondering if there might be a better place on the page to put the
> TZ selection. It isn't immediately obvious to the user what the extra
> " + " does, and it seems to cause some issues.
Hmmm... perhaps a 'config' page?
--
Jakub Narebski
Poland
next prev parent reply other threads:[~2011-03-24 20:20 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-19 5:39 [PATCH 1/2] gitweb: rename parse_date() to format_date() Kevin Cernekee
2011-03-19 5:39 ` [PATCH v4 2/2] gitweb: introduce localtime feature Kevin Cernekee
2011-03-19 15:18 ` Jakub Narebski
2011-03-19 17:56 ` Junio C Hamano
2011-03-19 19:49 ` Kevin Cernekee
2011-03-19 21:09 ` Jakub Narebski
2011-03-19 21:22 ` Kevin Cernekee
2011-03-19 21:41 ` Jakub Narebski
2011-03-20 22:38 ` J.H.
2011-03-20 23:44 ` Kevin Cernekee
2011-03-21 0:20 ` Jakub Narebski
2011-03-21 2:35 ` J.H.
2011-03-21 16:01 ` Jakub Narebski
2011-03-21 18:39 ` Piotr Krukowiecki
2011-03-21 18:39 ` J.H.
2011-03-21 22:20 ` Jakub Narebski
2011-03-24 0:08 ` [PATCH 0/1] Gitweb: Change timezone John 'Warthog9' Hawley
2011-03-24 0:08 ` [PATCH 1/1] gitweb: javascript ability to adjust time based on timezone John 'Warthog9' Hawley
2011-03-24 5:23 ` Kevin Cernekee
2011-03-24 7:21 ` J.H.
2011-03-24 21:23 ` Jakub Narebski
2011-03-24 20:19 ` Jakub Narebski [this message]
2011-03-24 22:00 ` Kevin Cernekee
2011-03-24 22:29 ` J.H.
2011-03-24 23:04 ` J.H.
2011-03-24 23:36 ` Jakub Narebski
2011-03-24 15:17 ` Jakub Narebski
2011-03-25 15:20 ` [PATCH (BUGFIX)] gitweb: Fix handling of fractional timezones in parse_date Jakub Narebski
2011-03-25 16:26 ` Kevin Cernekee
2011-03-25 16:50 ` [PATCH (BUGFIX) v2] " Jakub Narebski
2011-03-25 17:15 ` [PATCH (BUGFIX)] " Junio C Hamano
2011-03-25 17:47 ` Jakub Narebski
2011-03-25 19:20 ` [PATCH (BUGFIX) v3] " Jakub Narebski
2011-03-19 10:33 ` [PATCH 1/2] gitweb: rename parse_date() to format_date() Jakub Narebski
2011-03-19 11:50 ` Jon Seymour
2011-03-19 18:00 ` 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=201103242119.40214.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=cernekee@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=warthog9@eaglescrag.net \
/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).